diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/voice_thread.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/voice_thread.c b/apps/voice_thread.c index 87702339c8..3782ae8aac 100644 --- a/apps/voice_thread.c +++ b/apps/voice_thread.c | |||
@@ -181,6 +181,9 @@ void voice_wait(void) | |||
181 | * new clip by the time we wait. This should be resolvable if conditions | 181 | * new clip by the time we wait. This should be resolvable if conditions |
182 | * ever require knowing the very clip you requested has finished. */ | 182 | * ever require knowing the very clip you requested has finished. */ |
183 | event_wait(&voice_event, STATE_SIGNALED); | 183 | event_wait(&voice_event, STATE_SIGNALED); |
184 | /* Wait for PCM buffer to be exhausted. Works only if not playing. */ | ||
185 | while(!playback_is_playing() && pcm_is_playing()) | ||
186 | sleep(1); | ||
184 | } | 187 | } |
185 | 188 | ||
186 | /* Initialize voice thread data that must be valid upon starting and the | 189 | /* Initialize voice thread data that must be valid upon starting and the |