Microsoft DirectX 8.1 (Visual Basic) |
The DSFXDISTORTION type contains parameters for a distortion effect.
Syntax
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 15. 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 -18. 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 2400. 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 2400. 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 8000. 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. If an attempt is made to set a higher value, the parameter is set to the nearest supported value.
See Also