diff options
author | Chris Robinson <[email protected]> | 2019-08-20 08:46:12 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-08-20 08:46:12 -0700 |
commit | 0961f4eb00782df66e3ada75b4055b44a28240f3 (patch) | |
tree | c5dbf85dd50f5ff39c5c4857b24dca4d6582d3e6 /alc/mixvoice.cpp | |
parent | ce76cc144142a065e2702bd57f4358929c38d1bc (diff) |
Pass a span to the Resample function
Diffstat (limited to 'alc/mixvoice.cpp')
-rw-r--r-- | alc/mixvoice.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/mixvoice.cpp b/alc/mixvoice.cpp index c13245eb..6bdbdec1 100644 --- a/alc/mixvoice.cpp +++ b/alc/mixvoice.cpp @@ -621,7 +621,7 @@ void MixVoice(ALvoice *voice, ALvoice::State vstate, const ALuint SourceID, ALCc /* Resample, then apply ambisonic upsampling as needed. */ const ALfloat *ResampledData{Resample(&voice->mResampleState, &SrcData[MAX_RESAMPLE_PADDING], DataPosFrac, increment, - Device->ResampledData, DstBufferSize)}; + {Device->ResampledData, DstBufferSize})}; if((voice->mFlags&VOICE_IS_AMBISONIC)) { const ALfloat hfscale{chandata.mAmbiScale}; |