DSFXDISTORTION
Contains parameters for a distortion effect.
Type DSFXDISTORTION
fEdge As Single
fGain As Single
fPostEQBandwidth As Single
fPostEQCenterFrequency As Single
fPreLowpassCutoff As Single
End Type
Members
- fEdge
- Percentage of distortion intensity. The default value is 50. Minimum and maximum values are defined in the CONST_DSFXDISTORTION_EDGE enumeration.
- fGain
- Amount of signal change after distortion, in decibels. The default value is 0. Minimum and maximum values are defined in the CONST_DSFXDISTORTION_GAIN enumeration.
- fPostEQBandwidth
- Width of frequency band that determines range of harmonic content addition, in Hertz. The default value is 4000. Minimum and maximum values are defined in the CONST_DSFXDISTORTION_POSTEQBANDWIDTH enumeration.
- fPostEQCenterFrequency
- Center frequency of harmonic content addition, in Hertz. The default value is 4000. Minimum and maximum values are defined in the CONST_DSFXDISTORTION_POSTEQCENTERFREQUENCY enumeration.
- fPreLowpassCutoff
- Filter cutoff for high-frequency harmonics attenuation, in Hertz. The default value is 4000. Minimum and maximum values are defined in the CONST_DSFXDISTORTION_PRELOWPASSCUTOFF enumeration.
Remarks
The values in fPostEQBandwidth, fPostEQCenterFrequency, and fPreLowpassCutoff cannot exceed one-third of the frequency of the buffer.
See Also
DirectSoundFXDistortion8, Distortion