LIBRETRO: send NULL to audio_batch_cb if on mute

This commit is contained in:
Giovanni Cascione 2023-04-03 00:07:34 +02:00
parent 4135efbb68
commit a9ab90c456

View File

@ -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++;