diff options
author | Chris Robinson <chris.kcat@gmail.com> | 2019-03-09 18:34:00 -0800 |
---|---|---|
committer | Chris Robinson <chris.kcat@gmail.com> | 2019-03-09 18:34:00 -0800 |
commit | 87479b4b3207a0600586c919c03b5cee7af5154e (patch) | |
tree | bf951619b457bcd4333a4b08c9e6558431ce99b9 /OpenAL32/alSource.cpp | |
parent | ef0f3351321a7488e60faa838a4628cfecf230b8 (diff) |
Play dummy samples and force a fade out on stopping voices
Diffstat (limited to 'OpenAL32/alSource.cpp')
-rw-r--r-- | OpenAL32/alSource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenAL32/alSource.cpp b/OpenAL32/alSource.cpp index feab5213..9749e47c 100644 --- a/OpenAL32/alSource.cpp +++ b/OpenAL32/alSource.cpp @@ -2855,7 +2855,7 @@ AL_API ALvoid AL_APIENTRY alSourcePlayv(ALsizei n, const ALuint *sources) /* Clear previous samples. */ std::for_each(voice->PrevSamples.begin(), voice->PrevSamples.begin()+voice->NumChannels, - [](std::array<ALfloat,MAX_RESAMPLE_PADDING> &samples) -> void + [](std::array<ALfloat,MAX_RESAMPLE_PADDING*2> &samples) -> void { std::fill(std::begin(samples), std::end(samples), 0.0f); }); /* Clear the stepping value so the mixer knows not to mix this until |