Commit 909ed993 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

dsound: Fix buffer caps.

parent d0de7e72
...@@ -898,11 +898,8 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetCaps( ...@@ -898,11 +898,8 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetCaps(
caps->dwBufferBytes = This->buflen; caps->dwBufferBytes = This->buflen;
/* This value represents the speed of the "unlock" command. /* According to windows, this is zero*/
As unlock is quite fast (it does not do anything), I put caps->dwUnlockTransferRate = 0;
4096 ko/s = 4 Mo / s */
/* FIXME: hwbuf speed */
caps->dwUnlockTransferRate = 4096;
caps->dwPlayCpuOverhead = 0; caps->dwPlayCpuOverhead = 0;
return DS_OK; return DS_OK;
......
...@@ -914,11 +914,8 @@ static HRESULT WINAPI PrimaryBufferImpl_GetCaps( ...@@ -914,11 +914,8 @@ static HRESULT WINAPI PrimaryBufferImpl_GetCaps(
caps->dwBufferBytes = device->buflen; caps->dwBufferBytes = device->buflen;
/* This value represents the speed of the "unlock" command. /* Windows reports these as zero */
As unlock is quite fast (it does not do anything), I put caps->dwUnlockTransferRate = 0;
4096 ko/s = 4 Mo / s */
/* FIXME: hwbuf speed */
caps->dwUnlockTransferRate = 4096;
caps->dwPlayCpuOverhead = 0; caps->dwPlayCpuOverhead = 0;
return DS_OK; return DS_OK;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment