diff options
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 1854e92cbd..370604f923 100644 --- a/apps/talk.c +++ b/apps/talk.c | |||
@@ -80,7 +80,9 @@ const char* const file_thumbnail_ext = ".talk"; | |||
80 | #define MAX_THUMBNAIL_BUFSIZE 32768 | 80 | #define MAX_THUMBNAIL_BUFSIZE 32768 |
81 | #endif | 81 | #endif |
82 | 82 | ||
83 | #ifndef SIMULATOR | ||
83 | extern bool audio_is_initialized; | 84 | extern bool audio_is_initialized; |
85 | #endif | ||
84 | 86 | ||
85 | /***************** Data types *****************/ | 87 | /***************** Data types *****************/ |
86 | 88 | ||
@@ -180,9 +182,11 @@ static void load_voicefile(void) | |||
180 | load_size = file_size; | 182 | load_size = file_size; |
181 | #endif | 183 | #endif |
182 | 184 | ||
185 | #ifndef SIMULATOR | ||
183 | /* Wait until the audio is initialized before continuing */ | 186 | /* Wait until the audio is initialized before continuing */ |
184 | while(!audio_is_initialized) | 187 | while(!audio_is_initialized) |
185 | sleep(HZ/100); | 188 | sleep(HZ/100); |
189 | #endif | ||
186 | 190 | ||
187 | got_size = read(filehandle, audiobuf, load_size); | 191 | got_size = read(filehandle, audiobuf, load_size); |
188 | if (got_size != load_size /* failure */) | 192 | if (got_size != load_size /* failure */) |