mirror of
https://github.com/libretro/RetroArch
synced 2025-03-13 07:14:43 +00:00
audio_driver_sample - fix potential crash
This commit is contained in:
parent
564dac40c8
commit
62fd7e105d
@ -814,6 +814,8 @@ void audio_driver_sample(int16_t left, int16_t right)
|
||||
uint32_t runloop_flags;
|
||||
audio_driver_state_t *audio_st = &audio_driver_st;
|
||||
recording_state_t *recording_st = NULL;
|
||||
if (!audio_st || !audio_st->output_samples_conv_buf)
|
||||
return;
|
||||
if (audio_st->flags & AUDIO_FLAG_SUSPENDED)
|
||||
return;
|
||||
audio_st->output_samples_conv_buf[audio_st->data_ptr++] = left;
|
||||
|
Loading…
x
Reference in New Issue
Block a user