dsound: DirectSoundDevice_RemoveBuffer() cannot fail.
This commit is contained in:
parent
4e06eead8f
commit
cea6329483
|
@ -1080,12 +1080,9 @@ HRESULT DirectSoundDevice_AddBuffer(
|
|||
* Remove secondary buffer from buffer list.
|
||||
* Gets exclusive access to buffer for writing.
|
||||
*/
|
||||
HRESULT DirectSoundDevice_RemoveBuffer(
|
||||
DirectSoundDevice * device,
|
||||
IDirectSoundBufferImpl * pDSB)
|
||||
void DirectSoundDevice_RemoveBuffer(DirectSoundDevice * device, IDirectSoundBufferImpl * pDSB)
|
||||
{
|
||||
int i;
|
||||
HRESULT hr = DS_OK;
|
||||
|
||||
TRACE("(%p, %p)\n", device, pDSB);
|
||||
|
||||
|
@ -1108,6 +1105,4 @@ HRESULT DirectSoundDevice_RemoveBuffer(
|
|||
TRACE("buffer count is now %d\n", device->nrofbuffers);
|
||||
|
||||
RtlReleaseResource(&(device->buffer_list_lock));
|
||||
|
||||
return hr;
|
||||
}
|
||||
|
|
|
@ -118,9 +118,7 @@ HRESULT DirectSoundDevice_Initialize(
|
|||
HRESULT DirectSoundDevice_AddBuffer(
|
||||
DirectSoundDevice * device,
|
||||
IDirectSoundBufferImpl * pDSB) DECLSPEC_HIDDEN;
|
||||
HRESULT DirectSoundDevice_RemoveBuffer(
|
||||
DirectSoundDevice * device,
|
||||
IDirectSoundBufferImpl * pDSB) DECLSPEC_HIDDEN;
|
||||
void DirectSoundDevice_RemoveBuffer(DirectSoundDevice * device, IDirectSoundBufferImpl * pDSB) DECLSPEC_HIDDEN;
|
||||
HRESULT DirectSoundDevice_CreateSoundBuffer(
|
||||
DirectSoundDevice * device,
|
||||
LPCDSBUFFERDESC dsbd,
|
||||
|
|
Loading…
Reference in New Issue