forked from len0rd/rockbox
Archos recording: yield() within audio_beep() to avoid starving the mpeg thread; recording beep should no longer disturb prerecording.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7475 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
1e0b5aabcb
commit
fbaf503d0d
1 changed files with 2 additions and 1 deletions
|
|
@ -2512,6 +2512,7 @@ void audio_beep(int duration)
|
|||
* it doesn't affect the (pre-)recording. */
|
||||
mas_codec_writereg(0, shadow_codec_reg0 ^ 1);
|
||||
mas_codec_writereg(0, shadow_codec_reg0);
|
||||
yield();
|
||||
}
|
||||
while (current_tick - starttick < duration);
|
||||
}
|
||||
|
|
@ -2681,7 +2682,7 @@ void audio_play(int offset)
|
|||
} while(1);
|
||||
#else /* !SIMULATOR */
|
||||
is_playing = true;
|
||||
|
||||
|
||||
queue_post(&mpeg_queue, MPEG_PLAY, (void*)offset);
|
||||
#endif /* !SIMULATOR */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue