dsound: Fix buffer caps
Maarten Lankhorst
m.b.lankhorst at gmail.com
Sat Jun 2 09:09:34 CDT 2007
XP reports dwUnlockTransferRate as zero, so we should do the same.
Thanks to Peter Don Tychsen for reporting this.
-------------- next part --------------
>From 7fcfe37ca10c901e0fed6ef065a0eee16503b7ca Mon Sep 17 00:00:00 2001
From: Maarten Lankhorst <m.b.lankhorst at gmail.com>
Date: Wed, 30 May 2007 18:32:35 +0200
Subject: [PATCH] dsound: Buffer caps fix
---
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 0eb1ac1..27605d1 100644
--- a/dlls/dsound/buffer.c
+++ b/dlls/dsound/buffer.c
@@ -973,11 +973,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 3537c1e..d45360e 100644
--- a/dlls/dsound/primary.c
+++ b/dlls/dsound/primary.c
@@ -915,11 +915,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;
--
1.4.4.2
More information about the wine-patches
mailing list