Module: wine
Branch: master
Commit: 909ed9937a5365f70df81bad96ab2d7add753d39
URL: http://source.winehq.org/git/wine.git/?a=commit;h=909ed9937a5365f70df81bad9…
Author: Maarten Lankhorst <m.b.lankhorst(a)gmail.com>
Date: Wed May 30 18:32:35 2007 +0200
dsound: Fix buffer caps.
---
dlls/dsound/buffer.c | 7 ++-----
dlls/dsound/primary.c | 7 ++-----
2 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/dlls/dsound/buffer.c b/dlls/dsound/buffer.c
index b1cecd7..59964ec 100644
--- a/dlls/dsound/buffer.c
+++ b/dlls/dsound/buffer.c
@@ -898,11 +898,8 @@ static HRESULT WINAPI IDirectSoundBufferImpl_GetCaps(
caps->dwBufferBytes = This->buflen;
- /* This value represents the speed of the "unlock" command.
- As unlock is quite fast (it does not do anything), I put
- 4096 ko/s = 4 Mo / s */
- /* FIXME: hwbuf speed */
- caps->dwUnlockTransferRate = 4096;
+ /* According to windows, this is zero*/
+ caps->dwUnlockTransferRate = 0;
caps->dwPlayCpuOverhead = 0;
return DS_OK;
diff --git a/dlls/dsound/primary.c b/dlls/dsound/primary.c
index ad7a5b0..f229757 100644
--- a/dlls/dsound/primary.c
+++ b/dlls/dsound/primary.c
@@ -914,11 +914,8 @@ static HRESULT WINAPI PrimaryBufferImpl_GetCaps(
caps->dwBufferBytes = device->buflen;
- /* This value represents the speed of the "unlock" command.
- As unlock is quite fast (it does not do anything), I put
- 4096 ko/s = 4 Mo / s */
- /* FIXME: hwbuf speed */
- caps->dwUnlockTransferRate = 4096;
+ /* Windows reports these as zero */
+ caps->dwUnlockTransferRate = 0;
caps->dwPlayCpuOverhead = 0;
return DS_OK;