1
0
Fork 0
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:
Jens Arnold 2005-09-05 23:36:29 +00:00
parent 1e0b5aabcb
commit fbaf503d0d

View file

@ -2512,6 +2512,7 @@ void audio_beep(int duration)
* it doesn't affect the (pre-)recording. */ * it doesn't affect the (pre-)recording. */
mas_codec_writereg(0, shadow_codec_reg0 ^ 1); mas_codec_writereg(0, shadow_codec_reg0 ^ 1);
mas_codec_writereg(0, shadow_codec_reg0); mas_codec_writereg(0, shadow_codec_reg0);
yield();
} }
while (current_tick - starttick < duration); while (current_tick - starttick < duration);
} }