mirror of
https://github.com/libretro/RetroArch
synced 2025-02-07 21:39:54 +00:00
Add audio_driver_output_samples_buf checks back
It's possible for audio_driver_active to be true after the driver has been uninitialized and before it has been reinitialized, so these checks are still necessary.
This commit is contained in:
parent
b5836a6cb3
commit
dc6dea4b84
13
retroarch.c
13
retroarch.c
@ -30379,8 +30379,8 @@ static void audio_driver_sample(int16_t left, int16_t right)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!(p_rarch->runloop_paused ||
|
if (!(p_rarch->runloop_paused ||
|
||||||
!p_rarch->audio_driver_active
|
!p_rarch->audio_driver_active ||
|
||||||
))
|
!p_rarch->audio_driver_output_samples_buf))
|
||||||
audio_driver_flush(
|
audio_driver_flush(
|
||||||
p_rarch,
|
p_rarch,
|
||||||
p_rarch->configuration_settings->floats.slowmotion_ratio,
|
p_rarch->configuration_settings->floats.slowmotion_ratio,
|
||||||
@ -30404,7 +30404,8 @@ static void audio_driver_menu_sample(void)
|
|||||||
unsigned sample_count = (info->sample_rate / info->fps) * 2;
|
unsigned sample_count = (info->sample_rate / info->fps) * 2;
|
||||||
bool check_flush = !(
|
bool check_flush = !(
|
||||||
p_rarch->runloop_paused ||
|
p_rarch->runloop_paused ||
|
||||||
!p_rarch->audio_driver_active);
|
!p_rarch->audio_driver_active ||
|
||||||
|
!p_rarch->audio_driver_output_samples_buf);
|
||||||
|
|
||||||
while (sample_count > 1024)
|
while (sample_count > 1024)
|
||||||
{
|
{
|
||||||
@ -30489,7 +30490,8 @@ static size_t audio_driver_sample_batch(const int16_t *data, size_t frames)
|
|||||||
|
|
||||||
if (!(
|
if (!(
|
||||||
p_rarch->runloop_paused ||
|
p_rarch->runloop_paused ||
|
||||||
!p_rarch->audio_driver_active))
|
!p_rarch->audio_driver_active ||
|
||||||
|
!p_rarch->audio_driver_output_samples_buf))
|
||||||
audio_driver_flush(
|
audio_driver_flush(
|
||||||
p_rarch,
|
p_rarch,
|
||||||
p_rarch->configuration_settings->floats.slowmotion_ratio,
|
p_rarch->configuration_settings->floats.slowmotion_ratio,
|
||||||
@ -31365,7 +31367,8 @@ void audio_driver_frame_is_reverse(void)
|
|||||||
|
|
||||||
if (!(
|
if (!(
|
||||||
p_rarch->runloop_paused ||
|
p_rarch->runloop_paused ||
|
||||||
!p_rarch->audio_driver_active))
|
!p_rarch->audio_driver_active ||
|
||||||
|
!p_rarch->audio_driver_output_samples_buf))
|
||||||
audio_driver_flush(
|
audio_driver_flush(
|
||||||
p_rarch,
|
p_rarch,
|
||||||
p_rarch->configuration_settings->floats.slowmotion_ratio,
|
p_rarch->configuration_settings->floats.slowmotion_ratio,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user