Пример #1
0
        //===========================================================================
        public void DoSoundEffects(ESoundEffects fx)
        {
            effectsEngine = new ISoundEngine();

            // boolean args are 1) looped 2) start paused 3) enable sound effects
            ISound effectTester = effectsEngine.Play2D("curlew.wav", true, false, StreamMode.AutoDetect, true);

            ISoundEffectControl effectsControl = effectTester.SoundEffectControl;

            switch (fx)
            {
            case ESoundEffects.DISTORTION:
                effectsControl.EnableDistortionSoundEffect();
                break;

            case ESoundEffects.ECHO:
                effectsControl.EnableEchoSoundEffect();
                break;

            case ESoundEffects.REVERB:
                effectsControl.EnableWavesReverbSoundEffect();
                break;

            case ESoundEffects.GARGLE:
                effectsControl.EnableGargleSoundEffect();
                break;
            }
        } // end DoSoundEffects
Пример #2
0
        public void DoSoundEffects(ESoundEffects fx)
        {
            //effectsEngine = new ISoundEngine();

            // boolean args are 1) looped 2) start paused 3) enable sound effects
            //ISound effectTester = effectsEngine.Play2D(fileName, true, false, StreamMode.AutoDetect, true);

            //ISoundEffectControl effectsControl = effectTester.SoundEffectControl;

            switch (fx)
            {
            case ESoundEffects.DISTORTION:
                distortionOnOff = true;
                //effectsControl.EnableDistortionSoundEffect();
                break;

            case ESoundEffects.ECHO:
                echoOnOff = true;
                //effectsControl.EnableEchoSoundEffect();
                break;

            case ESoundEffects.REVERB:
                reverbOnOff = true;
                //effectsControl.EnableWavesReverbSoundEffect();
                break;

            case ESoundEffects.GARGLE:
                gargleOnOff = true;
                //effectsControl.EnableGargleSoundEffect();
                break;
            }
        } // end DoSoundEffects