public void Apply3D(Cue cue, Listener listener, Emitter emitter) { m_x3dAudio.Calculate(listener, emitter, CalculateFlags.Matrix | CalculateFlags.Doppler | CalculateFlags.EmitterAngle, m_dsp); cue.SetMatrixCoefficients(m_dsp.SourceChannelCount, m_dsp.DestinationChannelCount, m_dsp.MatrixCoefficients); cue.SetVariable(MyCueVariableEnum.Distance, m_dsp.EmitterToListenerDistance); cue.SetVariable(MyCueVariableEnum.DopplerPitchScalar, m_dsp.DopplerFactor); cue.SetVariable(MyCueVariableEnum.OrientationAngleDegrees, m_dsp.EmitterToListenerAngle * 57.29578f); // From radians to degrees }