X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=core%2Fmixer%2Faudio%2Faudio_mixer.cpp;h=50ce413c4f707393c78215358209cdba00482129;hb=4339e2b3466b78ed27cbe88592eb2e247c5c13a4;hp=a7d91dc43e1876b2d2634a13685ba05eb34f988c;hpb=4df32ce9ef78323744ec05ab51a626c8ef7d20a0;p=casparcg diff --git a/core/mixer/audio/audio_mixer.cpp b/core/mixer/audio/audio_mixer.cpp index a7d91dc43..50ce413c4 100644 --- a/core/mixer/audio/audio_mixer.cpp +++ b/core/mixer/audio/audio_mixer.cpp @@ -127,9 +127,9 @@ public: { for(size_t n = r.begin(); n < r.end(); ++n) { - const float alpha0 = (n*2) * delta; - const float volume0 = prev_volume * (1.0f - alpha0) + next_volume * alpha0; - const float volume1 = prev_volume * (1.0f - alpha0 + delta) + next_volume * (alpha0 + delta); + const float alpha0 = (n*2) * delta; + const float volume0 = prev_volume * (1.0f - alpha0) + next_volume * alpha0; + const float volume1 = prev_volume * (1.0f - alpha0 + delta) + next_volume * (alpha0 + delta); auto sample_epi32 = _mm_load_si128(reinterpret_cast<__m128i*>(&item.audio_data[n*4])); auto res_sample_ps = _mm_load_ps(&intermediate[n*4]);