Microsoft DirectX 8.1 (Visual Basic)

DirectPlayVoiceClient8.Delete3DSoundBuffer

Returns exclusive control of the 3-D sound buffer object back to the Microsoft® DirectPlay® Voice client object.

Delete3DSoundBuffer(playerID As Long, _
    UserBuffer As DirectSound3dBuffer8)

Parts

playerID
Long value specifying the DVID of the player or group that the user wants to delete a buffer for.
UserBuffer
User buffer to delete. This must be a user buffer obtained through the DirectPlayVoiceClient8.Create3DSoundBuffer method.

Error Codes

If the method fails, Err.Number can be set to one of the following values.

DVERR_INVALIDPARAM
DVERR_NOTCONNECTED
DVERR_SESSIONLOST
DVERR_ALREADYBUFFERED
DVERR_INVALIDPOINTER
DVERR_NOTBUFFERED
DVERR_INVALIDOBJECT
DVERR_NOTINITIALIZED
DVERR_NOTALLOWED

Remarks

If the DirectPlay Voice session is a mixing server session, this method fails and returns DVERR_NOTALLOWED.