From 8aaaffbe67c536a43a26b310e190404bc1dfb633 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Sun, 22 May 2016 20:21:18 -1000 Subject: [PATCH] Add 2-channel floating-point audio SSE path --- lib/audiodev/AudioMatrixSSE.cpp | 75 +++++++++++++++++++++++++++------ 1 file changed, 63 insertions(+), 12 deletions(-) diff --git a/lib/audiodev/AudioMatrixSSE.cpp b/lib/audiodev/AudioMatrixSSE.cpp index 9a40e2e..bd94481 100644 --- a/lib/audiodev/AudioMatrixSSE.cpp +++ b/lib/audiodev/AudioMatrixSSE.cpp @@ -302,31 +302,82 @@ float* AudioMatrixMono::mixMonoSampleData(const AudioVoiceEngineMixInfo& info, { if (m_slewFrames && m_curSlewFrame < m_slewFrames) { - double t = m_curSlewFrame / double(m_slewFrames); - double omt = 1.0 - t; + float t = m_curSlewFrame / float(m_slewFrames); + float omt = 1.f - t; - for (unsigned c=0 ; c