Microsoft DirectX 8.1 (Visual Basic) |
The SetSpeakerConfig method specifies the speaker configuration of the DirectSound8 object.
Syntax
object.SetSpeakerConfig( _
speakerConfig As CONST_DSSPEAKERFLAGS)
Parts
object
Resolves to a DirectSound8 object.
speakerConfig
Speaker configuration of the DirectSound8 object. Must be one or more of the constants of the CONST_DSSPEAKERFLAGS enumeration.
Error Codes
If the method fails, an error is raised and Err.Number may be one of the following error values.
DSERR_INVALIDPARAM |
DSERR_UNINITIALIZED |
Remarks
The speaker geometry is set by default to zero, which indicates that the speaker geometry has not been defined. The geometry must be explicitly set by passing one of the speaker geometry flags combined with the DSSPEAKER_STEREO flag.
See Also