aboutsummaryrefslogtreecommitdiffstats
path: root/core/voice.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-02-13 02:52:18 -0800
committerChris Robinson <[email protected]>2023-02-13 02:57:14 -0800
commitd0910e4468b575bfb23fe65c3a4ac860d95172da (patch)
treee475d253aa9873351a3ac6c56db3d3446309e655 /core/voice.cpp
parentb22f9410dde0da5b3795ba62f1a728590238349e (diff)
Pass a boolean for the decoder to update its state
Diffstat (limited to 'core/voice.cpp')
-rw-r--r--core/voice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/voice.cpp b/core/voice.cpp
index 31fe4088..4ca62a02 100644
--- a/core/voice.cpp
+++ b/core/voice.cpp
@@ -722,7 +722,7 @@ void Voice::mix(const State vstate, ContextBase *Context, const nanoseconds devi
std::fill_n(samples, samplesToLoad, 0.0f);
if(mDecoder)
- mDecoder->decode(MixingSamples, samplesToMix, (vstate==Playing) ? samplesToMix : 0);
+ mDecoder->decode(MixingSamples, samplesToMix, (vstate==Playing));
if(mFlags.test(VoiceIsAmbisonic))
{