Microsoft DirectX 8.1 (Visual Basic)

DirectSound8.GetSpeakerConfig

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

Syntax

object.GetSpeakerConfig() As CONST_DSSPEAKERFLAGS

Parts

object

Resolves to a DirectSound8 object.

Return Values

Returns a Long value containing 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 using the DirectSound8.SetSpeakerConfig method and passing one of the speaker geometry flags with the DSSPEAKER_STEREO flag.

See Also