[PATCH] dsound: allow LOCHARDWARE flag

Andrew Eikum aeikum at codeweavers.com
Mon Dec 29 09:52:19 CST 2014


Mark's dsound and alsa patches look OK to me.

Andrew

On Sun, Dec 28, 2014 at 01:54:27PM +0000, Mark Harmstone wrote:
> Patch to allow DSound buffers to be created with the DSBCAPS_LOCHARDWARE
> flag. There's been no audio hardware acceleration on Windows since XP, so
> this flag is meaningless nowadays anyway - but X3DAudio will refuse to
> create a buffer of more than two channels if it's not accepted.
> 
> ---
>  dlls/dsound/dsound.c | 6 ------
>  1 file changed, 6 deletions(-)
> 
> 

> diff --git a/dlls/dsound/dsound.c b/dlls/dsound/dsound.c
> index 8df778a..eaa4247 100644
> --- a/dlls/dsound/dsound.c
> +++ b/dlls/dsound/dsound.c
> @@ -975,12 +975,6 @@ HRESULT DirectSoundDevice_CreateSoundBuffer(
>          TRACE("(lpwfxFormat=%p)\n",dsbd->lpwfxFormat);
>      }
>  
> -    if (dsbd->dwFlags & DSBCAPS_LOCHARDWARE &&
> -            !(dsbd->dwFlags & DSBCAPS_PRIMARYBUFFER)) {
> -        TRACE("LOCHARDWARE is not supported, returning E_NOTIMPL\n");
> -        return E_NOTIMPL;
> -    }
> -
>      if (dsbd->dwFlags & DSBCAPS_PRIMARYBUFFER) {
>          if (dsbd->lpwfxFormat != NULL) {
>              WARN("invalid parameter: dsbd->lpwfxFormat must be NULL for "
> 

> 




More information about the wine-devel mailing list