diff options
Diffstat (limited to 'alc')
-rw-r--r-- | alc/voice.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/alc/voice.cpp b/alc/voice.cpp index 7e761b29..891bc3dc 100644 --- a/alc/voice.cpp +++ b/alc/voice.cpp @@ -636,15 +636,9 @@ void Voice::mix(const State vstate, ALCcontext *Context, const uint SamplesToDo) if(mDecoder) { - std::array<float*,4> samples{{mVoiceSamples[0].data() + MaxResamplerEdge, - mVoiceSamples[1].data() + MaxResamplerEdge, - mVoiceSamples[2].data() + MaxResamplerEdge, - nullptr}}; - if(mVoiceSamples.size() > 3) - samples[3] = mVoiceSamples[3].data() + MaxResamplerEdge; const size_t srcOffset{(increment*DstBufferSize + DataPosFrac)>>MixerFracBits}; SrcBufferSize = SrcBufferSize - PostPadding + MaxResamplerEdge; - mDecoder->decode(samples, SrcBufferSize, srcOffset); + mDecoder->decode(mVoiceSamples, MaxResamplerEdge, SrcBufferSize, srcOffset); } } |