From fbaf503d0d5506d4b4867e3b9bd468bb1bae381b Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 5 Sep 2005 23:36:29 +0000 Subject: 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 --- firmware/mpeg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'firmware') diff --git a/firmware/mpeg.c b/firmware/mpeg.c index 831463a671..ff74cf96a8 100644 --- a/firmware/mpeg.c +++ b/firmware/mpeg.c @@ -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 */ -- cgit