Standard Effects |
This topic is an introduction to the sound effects provided with Microsoft DirectSound.
The following effects are covered.
Chorus is a voice-doubling effect created by echoing the original sound with a slight delay and slightly modulating the delay of the echo.
This effect is represented by the ChorusEffect class. Its parameters are contained in the EffectsChorus structure.
Compression is a reduction in the fluctuation of a signal above a certain amplitude.
This effect is represented by the CompressorEffect class. Its parameters are contained in the EffectsCompressor structure.
Distortion is achieved by adding harmonics to the signal in such a way that, as the level increases, the top of the waveform becomes squared off or clipped.
This effect is represented by the DistortionEffect class. Its parameters are contained in the EffectsDistortion structure.
An echo effect causes sounds to be repeated after a fixed delay, usually at a diminished volume. As the repeated sounds are fed back into the mix, they are repeated again.
This effect is represented by the EchoEffect class. Its parameters are contained in the EffectsEcho structure.
DirectX supports environmental reverberation in accordance with the Interactive 3-D Audio, Level 2 (I3DL2) specification, published by the Interactive Audio Special Interest Group.
The Microsoft DirectX environmental reverb effect is an implementation of the listener properties in the I3DL2 specification. Source properties are not supported.
Sounds reaching the listener have three temporal components.
The combination of early reflections and late reverberation is sometimes called the room effect.
Reverb properties include the following:
Reverb properties are represented by an Interactive3DLevel2ReverbEffect class, and the parameters of the environment are contained in an EffectsInteractive3DLevel2Reverb structure.
DirectSound supports many sets of default parameters, or presets, that describe the reverb properties of audio environments ranging from mountains to sewer pipes. Most applications can simply choose one of these environments by using the Interactive3DLevel2ReverbEffect.Preset property.
To set and retrieve custom properties, use the Interactive3DLevel2ReverbEffect.AllParameters property.
Flange, also called flanger, is an echo effect in which the delay between the original signal and its echo is very short and varies over time. The result is sometimes referred to as a sweeping sound. The term flange originated with the practice of grabbing the flanges of a tape reel to change the speed.
This effect is represented by the FlangerEffect class. Its parameters are contained in the EffectsFlanger structure.
The gargle effect modulates the amplitude of the signal.
This effect is represented by the GargleEffect class. Its parameters are contained in the EffectsGargle structure.
A parametric equalizer amplifies or attenuates signals of a given frequency.
Parametric equalizer effects for different pitches can be applied in parallel by setting multiple instances of the effect on the same buffer. In this way, the application can have tone control similar to that provided by a hardware equalizer.
This effect is represented by the ParamEqEffect class. Its parameters are contained in the EffectsParamEq structure.
The Waves reverberation effect is intended for use with music. The Waves reverberation DirectX Media Object (DMO) is based on the Waves MaxxVerb technology, which is licensed to Microsoft.
This effect is represented by the WavesReverbEffect class. Its parameters are contained in the EffectsWavesReverb structure.
Send comments about this topic to Microsoft. © Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center