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/playback.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/playback.c')
| -rw-r--r-- | apps/playback.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/playback.c b/apps/playback.c index eac5307..20f8d4f 100644 --- a/apps/playback.c +++ b/apps/playback.c @@ -127,6 +127,7 @@ #endif enum { + Q_NULL = 0, Q_AUDIO_PLAY = 1, Q_AUDIO_STOP, Q_AUDIO_PAUSE, @@ -2623,3 +2624,11 @@ void audio_init(void) thread_thaw(audio_thread_p); } /* audio_init */ + +/* Wait until audio thread can respond to messages - this implies + * it has finished initialization */ +void audio_wait_for_init(void) +{ + LOGFQUEUE("audio >| Q_NULL"); + queue_send(&audio_queue, Q_NULL, 0); +} |