Platform SDK: DirectX

DirectSound.GetSpeakerConfig

The DirectSound.GetSpeakerConfig method retrieves the speaker configuration for this DirectSound object.

object.GetSpeakerConfig() As CONST_DSSPEAKERFLAGS

Parameters

object
Object expression that resolves to a DirectSound object.

Return Values

If the method succeeds, one or more of the constants of the CONST_DSSPEAKERFLAGS enumeration is returned.

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 using the DirectSound.SetSpeakerConfig method and passing one of the speaker geometry flags with the DSSPEAKER_STEREO flag.

See Also

DirectSound.SetSpeakerConfig