Platform SDK: DirectX

DirectSound3DBuffer.GetDirectSound3DListener

The DirectSound3DBuffer.GetDirectSound3DListener method returns a DirectSound3DListener object.

object.GetDirectSound3DListener() As DirectSound3DListener

Parameters

object
Object expression that resolves to a DirectSound3DBuffer object.

Return Values

If the method succeeds, a DirectSound3DListener object is returned.

Error Codes

If the method fails, an error is raised and Err.Number may be set to E_NOINTERFACE.

Remarks

This method can be used to obtain the listener from a DirectSound3DBuffer that was obtained from a DirectSoundBuffer representing the primary buffer. Most applications obtain the listener directly from the object representing the primary buffer by calling DirectSoundBuffer.GetDirectSound3DListener .