#include "AudioMatrix.hpp" #include "AudioVoiceEngine.hpp" #include namespace boo { void AudioMatrixMono::setDefaultMatrixCoefficients(AudioChannelSet acSet) { memset(m_coefs, 0, sizeof(m_coefs)); switch (acSet) { case AudioChannelSet::Stereo: case AudioChannelSet::Quad: m_coefs[int(AudioChannel::FrontLeft)] = 1.0; m_coefs[int(AudioChannel::FrontRight)] = 1.0; break; case AudioChannelSet::Surround51: case AudioChannelSet::Surround71: m_coefs[int(AudioChannel::FrontCenter)] = 1.0; break; default: break; } } int16_t* AudioMatrixMono::mixMonoSampleData(const AudioVoiceEngineMixInfo& info, const int16_t* dataIn, int16_t* dataOut, size_t samples) const { const ChannelMap& chmap = info.m_channelMap; for (size_t s=0 ; s