mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +00:00
Remove early return from audio_driver_flush
This commit is contained in:
parent
7deeb6d2fa
commit
575265ff06
@ -561,9 +561,6 @@ void audio_driver_set_nonblocking_state(bool enable)
|
|||||||
**/
|
**/
|
||||||
static void audio_driver_flush(const int16_t *data, size_t samples)
|
static void audio_driver_flush(const int16_t *data, size_t samples)
|
||||||
{
|
{
|
||||||
if (audio_suspended)
|
|
||||||
return;
|
|
||||||
|
|
||||||
struct resampler_data src_data;
|
struct resampler_data src_data;
|
||||||
bool is_perfcnt_enable = false;
|
bool is_perfcnt_enable = false;
|
||||||
bool is_paused = false;
|
bool is_paused = false;
|
||||||
@ -586,8 +583,8 @@ static void audio_driver_flush(const int16_t *data, size_t samples)
|
|||||||
runloop_get_status(&is_paused, &is_idle, &is_slowmotion,
|
runloop_get_status(&is_paused, &is_idle, &is_slowmotion,
|
||||||
&is_perfcnt_enable);
|
&is_perfcnt_enable);
|
||||||
|
|
||||||
if ( is_paused ||
|
if ( is_paused ||
|
||||||
!audio_driver_active ||
|
!audio_driver_active ||
|
||||||
!audio_driver_input_data ||
|
!audio_driver_input_data ||
|
||||||
!audio_driver_output_samples_buf)
|
!audio_driver_output_samples_buf)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user