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
6a7127bf
Commit
6a7127bf
authored
Aug 18, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Aug 19, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Test opening the same device twice.
Behavioral test to show that wine winmm needs fixing.
parent
179990ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
0 deletions
+33
-0
wave.c
dlls/winmm/tests/wave.c
+33
-0
No files found.
dlls/winmm/tests/wave.c
View file @
6a7127bf
...
...
@@ -37,6 +37,38 @@
#include "winmm_test.h"
static
void
test_multiple_waveopens
(
void
)
{
HWAVEOUT
handle1
,
handle2
;
MMRESULT
ret
;
WAVEFORMATEX
wfx
;
wfx
.
wFormatTag
=
WAVE_FORMAT_PCM
;
wfx
.
nChannels
=
1
;
wfx
.
nSamplesPerSec
=
11025
;
wfx
.
nBlockAlign
=
1
;
wfx
.
nAvgBytesPerSec
=
wfx
.
nSamplesPerSec
*
wfx
.
nBlockAlign
;
wfx
.
wBitsPerSample
=
8
;
wfx
.
cbSize
=
0
;
ret
=
waveOutOpen
(
&
handle1
,
0
,
&
wfx
,
0
,
0
,
0
);
if
(
ret
!=
MMSYSERR_NOERROR
)
{
skip
(
"Could not do the duplicate waveopen test
\n
"
);
return
;
}
ret
=
waveOutOpen
(
&
handle2
,
0
,
&
wfx
,
0
,
0
,
0
);
/* In windows this is most likely allowed, in wine an application can use the waveout
* interface, but so can directsound.. this causes problems if directsound goes active
*/
todo_wine
ok
(
ret
==
MMSYSERR_NOERROR
,
"waveOutOpen returns: %x
\n
"
,
ret
);
if
(
ret
==
MMSYSERR_NOERROR
)
waveOutClose
(
handle2
);
waveOutClose
(
handle1
);
}
/*
* Note that in most of this test we may get MMSYSERR_BADDEVICEID errors
* at about any time if the user starts another application that uses the
...
...
@@ -1428,5 +1460,6 @@ static void wave_out_tests(void)
START_TEST
(
wave
)
{
test_multiple_waveopens
();
wave_out_tests
();
}
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