]> git.sesse.net Git - casparcg/commitdiff
git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches...
authorronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Sat, 3 Sep 2011 16:20:46 +0000 (16:20 +0000)
committerronag <ronag@362d55ac-95cf-4e76-9f9a-cbaa9c17b72d>
Sat, 3 Sep 2011 16:20:46 +0000 (16:20 +0000)
core/mixer/audio/audio_mixer.cpp

index 574c899d50438b5517dddb2b4437b217a43d5730..a7d91dc43e1876b2d2634a13685ba05eb34f988c 100644 (file)
@@ -132,11 +132,10 @@ public:
                                                const float volume1             = prev_volume * (1.0f - alpha0 + delta) + next_volume * (alpha0 + delta);\r
 \r
                                                auto sample_epi32       = _mm_load_si128(reinterpret_cast<__m128i*>(&item.audio_data[n*4]));\r
+                                               auto res_sample_ps      = _mm_load_ps(&intermediate[n*4]);\r
 \r
                                                auto sample_ps          = _mm_cvtepi32_ps(sample_epi32);                                                                                                \r
                                                sample_ps                       = _mm_mul_ps(sample_ps, _mm_setr_ps(volume1, volume1, volume0, volume0));       \r
-\r
-                                               auto res_sample_ps      = _mm_load_ps(&intermediate[n*4]);\r
                                                res_sample_ps           = _mm_add_ps(sample_ps, res_sample_ps); \r
 \r
                                                _mm_store_ps(&intermediate[n*4], res_sample_ps);\r