summaryrefslogtreecommitdiffstats
path: root/apps/voice_thread.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-11-19 11:59:52 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-11-19 11:59:52 +0000
commitd6f2a5465430bb9c5d020d370e3bb419f616c2ea (patch)
treee4c6697d1ecb791608522d4121e135dd8f47ea74 /apps/voice_thread.c
parente75327b33249cb2656281af2bd5368fe0edd2d48 (diff)
downloadrockbox-d6f2a5465430bb9c5d020d370e3bb419f616c2ea.tar.gz
rockbox-d6f2a5465430bb9c5d020d370e3bb419f616c2ea.tar.bz2
rockbox-d6f2a5465430bb9c5d020d370e3bb419f616c2ea.zip
Make sure initial menu item is voiced at startup. Voice thread must wait for the audio thread to finish initializing hardware. A known issue at speex commit time (perhaps only by myself ;). The behavioral refinement time begins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15682 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/voice_thread.c')
-rw-r--r--apps/voice_thread.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/voice_thread.c b/apps/voice_thread.c
index 52d2c6ebfd..9e7478651e 100644
--- a/apps/voice_thread.c
+++ b/apps/voice_thread.c
@@ -286,6 +286,7 @@ static void voice_thread(void)
struct voice_thread_data td;
voice_data_init(&td);
+ audio_wait_for_init();
goto message_wait;
@@ -430,9 +431,6 @@ void voice_thread_resume(void)
{
logf("Thawing voice thread");
thread_thaw(voice_thread_p);
- /* Wait for initialization to complete (a very short wait until the
- * voice thread is available to process messages) */
- queue_send(&voice_queue, Q_VOICE_NULL, 0);
}
#ifdef HAVE_PRIORITY_SCHEDULING