summaryrefslogtreecommitdiffstats
path: root/src/audio_core
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2019-07-08 06:49:16 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2019-07-08 06:49:16 +0200
commite3d000a7e66a7e2c7ecbd7ad9d6626b9bedf66a9 (patch)
tree7ce6f1e803efbe27c20e3a1445c02241f615f812 /src/audio_core
parentaudren: Only manage wave buffers with a size (diff)
downloadyuzu-e3d000a7e66a7e2c7ecbd7ad9d6626b9bedf66a9.tar
yuzu-e3d000a7e66a7e2c7ecbd7ad9d6626b9bedf66a9.tar.gz
yuzu-e3d000a7e66a7e2c7ecbd7ad9d6626b9bedf66a9.tar.bz2
yuzu-e3d000a7e66a7e2c7ecbd7ad9d6626b9bedf66a9.tar.lz
yuzu-e3d000a7e66a7e2c7ecbd7ad9d6626b9bedf66a9.tar.xz
yuzu-e3d000a7e66a7e2c7ecbd7ad9d6626b9bedf66a9.tar.zst
yuzu-e3d000a7e66a7e2c7ecbd7ad9d6626b9bedf66a9.zip
Diffstat (limited to 'src/audio_core')
-rw-r--r--src/audio_core/audio_renderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio_core/audio_renderer.cpp b/src/audio_core/audio_renderer.cpp
index 0c3d7df01..4882a6cd8 100644
--- a/src/audio_core/audio_renderer.cpp
+++ b/src/audio_core/audio_renderer.cpp
@@ -225,7 +225,7 @@ std::vector<s16> 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;
}
}