2 * Copyright (c) 2007-2010 SlimDX Group
4 * Permission is hereby granted, free of charge, to any person obtaining a copy
5 * of this software and associated documentation files (the "Software"), to deal
6 * in the Software without restriction, including without limitation the rights
7 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 * copies of the Software, and to permit persons to whom the Software is
9 * furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
29 /// The SoundEffectFlanger object is used to set and retrieve effect parameters on a buffer that supports flange.
31 /// <unmanaged>IDirectSoundFXFlanger</unmanaged>
32 public ref class FlangerEffect : public ComObject
34 COMOBJECT(IDirectSoundFXFlanger, FlangerEffect);
38 /// Number of milliseconds the input is delayed before it is played back. The default value is 2 ms.
43 void set( float value );
47 /// Percentage by which the delay time is modulated by the low-frequency oscillator (LFO), in hundredths of a percentage point. The default value is 100.
52 void set( float value );
56 /// Percentage of output signal to feed back into the effect's input. The default value is -50.
58 property float Feedback
61 void set( float value );
65 /// Frequency of the LFO. The default value is 0.25.
67 property float Frequency
70 void set( float value );
74 /// Phase differential between left and right LFOs.
79 void set( int value );
83 /// Waveform shape of the LFO. By default, the waveform is a sine.
88 void set( int value );
92 /// Ratio of wet (processed) signal to dry (unprocessed) signal. The default value is 50.
94 property float WetDryMix
97 void set( float value );
101 /// Default number of milliseconds the input is delayed before it is played back.
103 literal float DelayDefault = 2.0f;
106 /// Maximum number of milliseconds the input is delayed before it is played back.
108 literal float DelayMax = DSFXFLANGER_DELAY_MAX;
111 /// Minimum number of milliseconds the input is delayed before it is played back.
113 literal float DelayMin = DSFXFLANGER_DELAY_MIN;
116 /// Default percentage by which the delay time is modulated by the low-frequency oscillator (LFO), in hundredths of a percentage point.
118 literal float DepthDefault = 100.0f;
121 /// Maximum percentage by which the delay time is modulated by the low-frequency oscillator (LFO), in hundredths of a percentage point.
123 literal float DepthMax = DSFXFLANGER_DEPTH_MAX;
126 /// Minimum percentage by which the delay time is modulated by the low-frequency oscillator (LFO), in hundredths of a percentage point.
128 literal float DepthMin = DSFXFLANGER_DEPTH_MIN;
131 /// Default percentage of output signal to feed back into the effect's input.
133 literal float FeedbackDefault = -50.0f;
136 /// Maximum percentage of output signal to feed back into the effect's input.
138 literal float FeedbackMax = DSFXFLANGER_FEEDBACK_MAX;
141 /// Minimum percentage of output signal to feed back into the effect's input.
143 literal float FeedbackMin = DSFXFLANGER_FEEDBACK_MIN;
146 /// Default frequency of the LFO(low-frequency oscillator).
148 literal float FrequencyDefault = 0.25f;
151 /// Maximum frequency of the LFO(low-frequency oscillator).
153 literal float FrequencyMax = DSFXFLANGER_FREQUENCY_MAX;
156 /// Minimum frequency of the LFO(low-frequency oscillator).
158 literal float FrequencyMin = DSFXFLANGER_FREQUENCY_MIN;
161 /// Default phase differential between left and right LFOs.
163 literal int PhaseDefault = DSFXFLANGER_PHASE_ZERO;
166 /// Maximum phase differential between left and right LFOs.
168 literal int PhaseMax = DSFXFLANGER_PHASE_MAX;
171 /// Minimum phase differential between left and right LFOs.
173 literal int PhaseMin = DSFXFLANGER_PHASE_MIN;
176 /// Negative 180 phase differential between left and right LFOs.
178 literal int PhaseNegative180 = DSFXFLANGER_PHASE_NEG_180;
181 /// Negative 90 phase differential between left and right LFOs.
183 literal int PhaseNegative90 = DSFXFLANGER_PHASE_NEG_90;
186 /// Zero phase differential between left and right LFOs.
188 literal int PhaseZero = DSFXFLANGER_PHASE_ZERO;
191 /// Positive 180 phase differential between left and right LFOs.
193 literal int Phase180 = DSFXFLANGER_PHASE_180;
196 /// Positive 90 phase differential between left and right LFOs.
198 literal int Phase90 = DSFXFLANGER_PHASE_90;
201 /// Default waveform shape of the LFO. By default, the waveform is a sine.
203 literal int WaveformDefault = DSFXFLANGER_WAVE_SIN;
206 /// Triangular waveform shape of the LFO. By default, the waveform is a sine.
208 literal int WaveformTriangle = DSFXFLANGER_WAVE_TRIANGLE;
211 /// Sine waveform shape of the LFO. By default, the waveform is a sine.
213 literal int WaveformSin = DSFXFLANGER_WAVE_SIN;
216 /// Default ratio of wet (processed) signal to dry (unprocessed) signal.
218 literal float WetDryMixDefault = 50.0f;
221 /// Maximum ratio of wet (processed) signal to dry (unprocessed) signal.
223 literal float WetDryMixMax = DSFXFLANGER_WETDRYMIX_MAX;
226 /// Minimum ratio of wet (processed) signal to dry (unprocessed) signal.
228 literal float WetDryMixMin = DSFXFLANGER_WETDRYMIX_MIN;