Microsoft DirectX 8.0 (Visual Basic)

DirectSoundPrimaryBuffer8.GetDirectSound3DListener

Returns a listener object, which represents the person listening to the sound. The listener object can be used to set global sound parameters.

object.GetDirectSound3DListener() As DirectSound3DListener8

Parts

object
Resolves to a DirectSoundPrimaryBuffer8 object.

Return Values

Returns a DirectSound3DListener8 object.

Error Codes

If the method fails, an error is raised and Err.Number is set.

Remarks

The method succeeds only if the primary buffer was created with the DSBCAPS_CTRL3D flag.