Platform SDK: DirectX

DirectSound.SetSpeakerConfig

The DirectSound.SetSpeakerConfig method specifies the speaker configuration of the DirectSound object.

object.SetSpeakerConfig( _
    speakerConfig As CONST_DSSPEAKERFLAGS)

Parameters

object
Object expression that resolves to a DirectSound object.
speakerConfig
Speaker configuration of the DirectSound 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 states 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

DirectSound.GetSpeakerConfig