mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 03:10:22 +00:00
LIBRETRO: send NULL to audio_batch_cb if on mute
This commit is contained in:
parent
4135efbb68
commit
a9ab90c456
@ -816,7 +816,7 @@ void retro_run(void) {
|
||||
audio_buffer_init(SAMPLE_RATE, (uint16) frame_rate);
|
||||
}
|
||||
#endif
|
||||
audio_batch_cb((int16_t *) sound_buffer, samples_count);
|
||||
audio_batch_cb((audio_status & AUDIO_STATUS_MUTE) ? NULL : (int16_t *) sound_buffer, samples_count); // Set to NULL to skip sound rendering
|
||||
|
||||
current_frame++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user