diff options
-rw-r--r-- | firmware/mpeg.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
2512 | * it doesn't affect the (pre-)recording. */ | 2512 | * it doesn't affect the (pre-)recording. */ |
2513 | mas_codec_writereg(0, shadow_codec_reg0 ^ 1); | 2513 | mas_codec_writereg(0, shadow_codec_reg0 ^ 1); |
2514 | mas_codec_writereg(0, shadow_codec_reg0); | 2514 | mas_codec_writereg(0, shadow_codec_reg0); |
2515 | yield(); | ||
2515 | } | 2516 | } |
2516 | while (current_tick - starttick < duration); | 2517 | while (current_tick - starttick < duration); |
2517 | } | 2518 | } |
@@ -2681,7 +2682,7 @@ void audio_play(int offset) | |||
2681 | } while(1); | 2682 | } while(1); |
2682 | #else /* !SIMULATOR */ | 2683 | #else /* !SIMULATOR */ |
2683 | is_playing = true; | 2684 | is_playing = true; |
2684 | 2685 | ||
2685 | queue_post(&mpeg_queue, MPEG_PLAY, (void*)offset); | 2686 | queue_post(&mpeg_queue, MPEG_PLAY, (void*)offset); |
2686 | #endif /* !SIMULATOR */ | 2687 | #endif /* !SIMULATOR */ |
2687 | 2688 | ||