From e3d000a7e66a7e2c7ecbd7ad9d6626b9bedf66a9 Mon Sep 17 00:00:00 2001 From: David Marcec Date: Mon, 8 Jul 2019 14:49:16 +1000 Subject: [PATCH] addressed issue --- src/audio_core/audio_renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio_core/audio_renderer.cpp b/src/audio_core/audio_renderer.cpp index 0c3d7df011..4882a6cd8f 100644 --- a/src/audio_core/audio_renderer.cpp +++ b/src/audio_core/audio_renderer.cpp @@ -225,7 +225,7 @@ std::vector AudioRenderer::VoiceState::DequeueSamples(std::size_t sample_co out_status.wave_buffer_consumed++; } - if (wave_buffer.end_of_stream || !wave_buffer.buffer_sz) { + if (wave_buffer.end_of_stream || wave_buffer.buffer_sz == 0) { info.play_state = PlayState::Paused; } }