Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
582b5432
Commit
582b5432
authored
Apr 14, 2015
by
Andrew Eikum
Committed by
Alexandre Julliard
Apr 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound/tests: Don't perform ALAW test on secondary buffers.
win2k supports it, winxp gives one error, vista+ gives another. This isn't interesting behavior to test.
parent
e17f4fd2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
dsound.c
dlls/dsound/tests/dsound.c
+3
-1
No files found.
dlls/dsound/tests/dsound.c
View file @
582b5432
...
...
@@ -1391,6 +1391,7 @@ static void perform_invalid_fmt_tests(const char *testname, IDirectSound *dso, I
ok
(
wfx
.
nAvgBytesPerSec
==
44100
*
4
+
1
,
"%s: avgbytes: %u
\n
"
,
testname
,
wfx
.
nAvgBytesPerSec
);
IDirectSoundBuffer_Release
(
got_buf
);
if
(
buf
){
wfx
.
wFormatTag
=
WAVE_FORMAT_ALAW
;
wfx
.
nChannels
=
2
;
wfx
.
nSamplesPerSec
=
44100
;
...
...
@@ -1398,7 +1399,7 @@ static void perform_invalid_fmt_tests(const char *testname, IDirectSound *dso, I
wfx
.
nBlockAlign
=
wfx
.
nChannels
*
wfx
.
wBitsPerSample
/
8
;
wfx
.
nAvgBytesPerSec
=
wfx
.
nSamplesPerSec
*
wfx
.
nBlockAlign
;
rc
=
do_invalid_fmt_test
(
dso
,
buf
,
&
wfx
,
&
got_buf
);
ok
(
buf
?
rc
==
S_OK
:
(
rc
==
E_NOTIMPL
||
rc
==
DSERR_INVALIDCALL
/* winxp */
)
,
"%s: SetFormat: %08x
\n
"
,
testname
,
rc
);
ok
(
rc
==
S_OK
,
"%s: SetFormat: %08x
\n
"
,
testname
,
rc
);
if
(
got_buf
){
rc
=
IDirectSoundBuffer_GetFormat
(
got_buf
,
&
wfx
,
sizeof
(
wfx
),
NULL
);
...
...
@@ -1411,6 +1412,7 @@ static void perform_invalid_fmt_tests(const char *testname, IDirectSound *dso, I
ok
(
wfx
.
nAvgBytesPerSec
==
44100
*
4
,
"%s: avgbytes: %u
\n
"
,
testname
,
wfx
.
nAvgBytesPerSec
);
IDirectSoundBuffer_Release
(
got_buf
);
}
}
if
(
!
gotdx8
){
win_skip
(
"Not doing the WAVE_FORMAT_EXTENSIBLE tests
\n
"
);
...
...
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