diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2007-11-19 11:59:52 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2007-11-19 11:59:52 +0000 |
| commit | d6f2a5465430bb9c5d020d370e3bb419f616c2ea (patch) | |
| tree | e4c6697d1ecb791608522d4121e135dd8f47ea74 /apps/voice_thread.c | |
| parent | e75327b33249cb2656281af2bd5368fe0edd2d48 (diff) | |
| download | rockbox-d6f2a5465430bb9c5d020d370e3bb419f616c2ea.zip rockbox-d6f2a5465430bb9c5d020d370e3bb419f616c2ea.tar.gz rockbox-d6f2a5465430bb9c5d020d370e3bb419f616c2ea.tar.bz2 rockbox-d6f2a5465430bb9c5d020d370e3bb419f616c2ea.tar.xz | |
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.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/voice_thread.c b/apps/voice_thread.c index 52d2c6e..9e74786 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 |