summaryrefslogtreecommitdiff
path: root/Source/Core/AudioCommon/Mixer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/AudioCommon/Mixer.cpp')
-rw-r--r--Source/Core/AudioCommon/Mixer.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/Core/AudioCommon/Mixer.cpp b/Source/Core/AudioCommon/Mixer.cpp
index 1bebe88595..56370ed350 100644
--- a/Source/Core/AudioCommon/Mixer.cpp
+++ b/Source/Core/AudioCommon/Mixer.cpp
@@ -18,6 +18,18 @@
#include <tmmintrin.h>
#endif
+CMixer::CMixer(unsigned int BackendSampleRate)
+ : m_dma_mixer(this, 32000)
+ , m_streaming_mixer(this, 48000)
+ , m_wiimote_speaker_mixer(this, 3000)
+ , m_sampleRate(BackendSampleRate)
+ , m_log_dtk_audio(false)
+ , m_log_dsp_audio(false)
+ , m_speed(0)
+{
+ INFO_LOG(AUDIO_INTERFACE, "Mixer is initialized");
+}
+
// Executed from sound stream thread
unsigned int CMixer::MixerFifo::Mix(short* samples, unsigned int numSamples, bool consider_framelimit)
{