Microsoft DirectX 8.1 (Visual Basic) |
The SetPreset method sets standard reverberation parameters of a buffer.
Syntax
object.SetPreset(lPreset As Long)
Parts
object
Resolves to a DirectSoundFXI3DL2Reverb8 object.
lPreset
Constant from the CONST_DSFX_I3DL2_ENVIRONMENT_PRESETS enumeration that specifies a set of default parameters. See Dsound.h for the parameters associated with each constant.
Error Codes
If the method fails, an error is raised. Possible values for Err.Number include DSERR_INVALIDPARAM.