addressed issue

This commit is contained in:
David Marcec 2019-07-08 14:49:16 +10:00
parent b82b5e46e7
commit e3d000a7e6

View File

@ -225,7 +225,7 @@ std::vector<s16> AudioRenderer::VoiceState::DequeueSamples(std::size_t sample_co
out_status.wave_buffer_consumed++; 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; info.play_state = PlayState::Paused;
} }
} }