?/TD> |
Microsoft DirectX 9.0 |
Returns exclusive control of the 3-D sound buffer object to the Microsoft?DirectPlay?voice client object.
Syntax
HRESULT Delete3DSoundBuffer(
DVID dvID, LPDIRECTSOUND3DBUFFER *lpUserBuffer );
Parameters
- dvID
- [in] DVID of the player or group that the user wants to delete a buffer for.
- lpUserBuffer
- [in] Pointer to the user buffer to delete. This must be a user buffer obtained through the IDirectPlayVoiceClient::Create3DSoundBuffer method.
Return Value
Returns DV_OK if successful, or one of the following error values.
DVERR_ALREADYBUFFERED There is already a user buffer for the specified ID. DVERR_INVALIDOBJECT The DirectPlay object pointer is invalid. DVERR_INVALIDPARAM One or more of the parameters passed to the method are invalid. DVERR_INVALIDPOINTER The pointer specified is invalid. DVERR_NOTALLOWED The object does not have the permission to perform this operation. DVERR_NOTBUFFERED There is no user buffer for the specified ID. DVERR_NOTCONNECTED The DirectPlay Voice object is not connected. DVERR_NOTINITIALIZED The IDirectPlayVoiceClient::Initialize or IDirectPlayVoiceServer::Initialize method must be called before calling this method. DVERR_SESSIONLOST The transport has lost the connection to the session.
Remarks
If the DirectPlay Voice session is a mixing server session, this method fails and returns DVERR_NOTALLOWED.