From 909ed9937a5365f70df81bad96ab2d7add753d39 Mon Sep 17 00:00:00 2001 From: Maarten Lankhorst Date: Wed, 30 May 2007 18:32:35 +0200 Subject: [PATCH] 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 b1cecd70ca..59964ec199 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 ad7a5b0f49..f229757909 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; -- 2.32.0.93.g670b81a890