diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2007-03-09 09:27:13 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2007-03-09 09:27:13 +0000 |
| commit | 8e7ab3dfffe3cec8716f0842c0c9dca152402eb7 (patch) | |
| tree | 7adcedacc637b7de457a86b8e206fe37e9b4a048 /apps | |
| parent | 198245a85e965ec537662e1358a66e3a74d5bb11 (diff) | |
| download | rockbox-8e7ab3dfffe3cec8716f0842c0c9dca152402eb7.zip rockbox-8e7ab3dfffe3cec8716f0842c0c9dca152402eb7.tar.gz rockbox-8e7ab3dfffe3cec8716f0842c0c9dca152402eb7.tar.bz2 rockbox-8e7ab3dfffe3cec8716f0842c0c9dca152402eb7.tar.xz | |
Fix the sim build
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12692 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/talk.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/talk.c b/apps/talk.c index 1854e92..370604f 100644 --- a/apps/talk.c +++ b/apps/talk.c @@ -80,7 +80,9 @@ const char* const file_thumbnail_ext = ".talk"; #define MAX_THUMBNAIL_BUFSIZE 32768 #endif +#ifndef SIMULATOR extern bool audio_is_initialized; +#endif /***************** Data types *****************/ @@ -180,9 +182,11 @@ static void load_voicefile(void) load_size = file_size; #endif +#ifndef SIMULATOR /* Wait until the audio is initialized before continuing */ while(!audio_is_initialized) sleep(HZ/100); +#endif got_size = read(filehandle, audiobuf, load_size); if (got_size != load_size /* failure */) |