Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
b202b9f7
Commit
b202b9f7
authored
Sep 17, 2012
by
Andrew Eikum
Committed by
Alexandre Julliard
Sep 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Don't require WAVE_FORMAT_EXTENSIBLE for non-16-bit formats.
Fix proposed by Andrew Nguyen.
parent
09321299
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
6 deletions
+1
-6
dsound.c
dlls/dsound/dsound.c
+0
-5
dsound.c
dlls/dsound/tests/dsound.c
+1
-1
No files found.
dlls/dsound/dsound.c
View file @
b202b9f7
...
@@ -940,11 +940,6 @@ HRESULT DirectSoundDevice_CreateSoundBuffer(
...
@@ -940,11 +940,6 @@ HRESULT DirectSoundDevice_CreateSoundBuffer(
}
}
pwfxe
=
(
WAVEFORMATEXTENSIBLE
*
)
dsbd
->
lpwfxFormat
;
pwfxe
=
(
WAVEFORMATEXTENSIBLE
*
)
dsbd
->
lpwfxFormat
;
if
(
pwfxe
->
Format
.
wBitsPerSample
!=
16
&&
pwfxe
->
Format
.
wBitsPerSample
!=
8
&&
pwfxe
->
Format
.
wFormatTag
!=
WAVE_FORMAT_EXTENSIBLE
)
{
WARN
(
"wBitsPerSample=%d needs a WAVEFORMATEXTENSIBLE
\n
"
,
dsbd
->
lpwfxFormat
->
wBitsPerSample
);
return
DSERR_CONTROLUNAVAIL
;
}
if
(
pwfxe
->
Format
.
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
)
if
(
pwfxe
->
Format
.
wFormatTag
==
WAVE_FORMAT_EXTENSIBLE
)
{
{
/* check if cbSize is at least 22 bytes */
/* check if cbSize is at least 22 bytes */
...
...
dlls/dsound/tests/dsound.c
View file @
b202b9f7
...
@@ -753,7 +753,7 @@ static HRESULT test_secondary(LPGUID lpGuid)
...
@@ -753,7 +753,7 @@ static HRESULT test_secondary(LPGUID lpGuid)
if
(
gotdx8
||
wfx
.
wBitsPerSample
<=
16
||
wfx
.
wFormatTag
==
WAVE_FORMAT_IEEE_FLOAT
)
if
(
gotdx8
||
wfx
.
wBitsPerSample
<=
16
||
wfx
.
wFormatTag
==
WAVE_FORMAT_IEEE_FLOAT
)
{
{
if
(
wfx
.
wBitsPerSample
>
16
)
if
(
wfx
.
wBitsPerSample
>
16
)
ok
(((
rc
==
DSERR_CONTROLUNAVAIL
||
rc
==
DSERR_INVALIDCALL
||
rc
==
DSERR_INVALIDPARAM
/* 2003 */
)
&&
!
secondary
)
ok
(
broken
((
rc
==
DSERR_CONTROLUNAVAIL
||
rc
==
DSERR_INVALIDCALL
||
rc
==
DSERR_INVALIDPARAM
/* 2003 */
)
&&
!
secondary
)
||
rc
==
DS_OK
,
/* driver dependent? */
||
rc
==
DS_OK
,
/* driver dependent? */
"IDirectSound_CreateSoundBuffer() "
"IDirectSound_CreateSoundBuffer() "
"should have returned (DSERR_CONTROLUNAVAIL or DSERR_INVALIDCALL) "
"should have returned (DSERR_CONTROLUNAVAIL or DSERR_INVALIDCALL) "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment