diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2010-05-26 04:51:24 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2010-05-26 04:51:24 +0000 |
commit | a8d9a03cfb3c72d36933f3a1867ada00dff0d1d5 (patch) | |
tree | 8893e8f1da225b23e7b8ba2c47aac7f0de45b55f /apps/recorder/recording.c | |
parent | eeef8f6c39e0fb3c7dc97d7e7ca2a034f79395da (diff) | |
download | rockbox-a8d9a03cfb3c72d36933f3a1867ada00dff0d1d5.tar.gz rockbox-a8d9a03cfb3c72d36933f3a1867ada00dff0d1d5.zip |
SWCODEC: Wait for audio init to complete before starting radio or recording; hardware init might not be finished yet if those are the start screens.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26298 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/recording.c')
-rw-r--r-- | apps/recorder/recording.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/recorder/recording.c b/apps/recorder/recording.c index 21db298184..c30098277d 100644 --- a/apps/recorder/recording.c +++ b/apps/recorder/recording.c | |||
@@ -1093,6 +1093,10 @@ bool recording_screen(bool no_source) | |||
1093 | #endif | 1093 | #endif |
1094 | 1094 | ||
1095 | #if CONFIG_CODEC == SWCODEC | 1095 | #if CONFIG_CODEC == SWCODEC |
1096 | /* This should be done before touching audio settings */ | ||
1097 | while (!audio_is_thread_ready()) | ||
1098 | sleep(0); | ||
1099 | |||
1096 | /* recording_menu gets messed up: so prevent manus talking */ | 1100 | /* recording_menu gets messed up: so prevent manus talking */ |
1097 | talk_disable(true); | 1101 | talk_disable(true); |
1098 | /* audio_init_recording stops anything playing when it takes the audio | 1102 | /* audio_init_recording stops anything playing when it takes the audio |