Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Reverb"/> class.
        /// </summary>
        public Reverb(bool isUsingDebug)
            : base(IntPtr.Zero)
        {
#if DIRECTX11_1
            XAudio2Functions.CreateAudioReverb(this);
#else
            Guid clsid = (isUsingDebug) ? XAudio2FxContants.CLSID_AudioReverb_Debug : XAudio2FxContants.CLSID_AudioReverb;
            Utilities.CreateComInstance(clsid, Utilities.CLSCTX.ClsctxInprocServer, Utilities.GetGuidFromType(typeof(AudioProcessor)), this);
#endif
        }
Esempio n. 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Reverb"/> class.
        /// </summary>
        public Reverb(bool isUsingDebug)
            : base(IntPtr.Zero)
        {
#if DESKTOP_APP
            if (XAudio2.Version == XAudio2Version.Version27)
            {
                Guid clsid = (isUsingDebug) ? XAudio2FxContants.CLSID_AudioReverb_Debug : XAudio2FxContants.CLSID_AudioReverb;
                Utilities.CreateComInstance(clsid, Utilities.CLSCTX.ClsctxInprocServer, XAudio2FxContants.CLSID_IAudioProcessor, this);
                return;
            }
#endif
            XAudio2Functions.CreateAudioReverb(this);
        }