Example #1
0
        public void Apply3D(AudioListener listener, AudioEmitter emitter)
        {
            if (listener == null)
            {
                throw new ArgumentNullException("listener");
            }
            if (emitter == null)
            {
                throw new ArgumentNullException("emitter");
            }

            emitter.emitterData.ChannelCount        = bank.dspSettings.SrcChannelCount;
            emitter.emitterData.CurveDistanceScaler = float.MaxValue;
            FAudio.FACT3DCalculate(
                bank.engine.handle3D,
                ref listener.listenerData,
                ref emitter.emitterData,
                ref bank.dspSettings
                );
            FAudio.FACT3DApply(ref bank.dspSettings, handle);
        }