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
83d29a07
Commit
83d29a07
authored
Mar 18, 2005
by
Robert Reif
Committed by
Alexandre Julliard
Mar 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check wave out volume support.
parent
b91e2d4a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
wave.c
dlls/winmm/tests/wave.c
+7
-6
No files found.
dlls/winmm/tests/wave.c
View file @
83d29a07
...
...
@@ -457,6 +457,7 @@ static void wave_out_test_deviceOut(int device, double duration,
WORD
nChannels
=
pwfx
->
nChannels
;
WORD
wBitsPerSample
=
pwfx
->
wBitsPerSample
;
DWORD
nSamplesPerSec
=
pwfx
->
nSamplesPerSec
;
BOOL
has_volume
=
pcaps
->
dwSupport
&
WAVECAPS_VOLUME
;
hevent
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
ok
(
hevent
!=
NULL
,
"CreateEvent(): error=%ld
\n
"
,
GetLastError
());
...
...
@@ -512,8 +513,8 @@ static void wave_out_test_deviceOut(int device, double duration,
frag
.
dwLoops
=
0
;
rc
=
waveOutGetVolume
(
wout
,
&
volume
);
ok
(
rc
==
MMSYSERR_NOERROR
,
"waveOutGetVolume(%s): rc=%s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
ok
(
has_volume
?
rc
==
MMSYSERR_NOERROR
:
rc
==
MMSYSERR_NOTSUPPORTED
,
"waveOutGetVolume(%s): rc=%s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
rc
=
waveOutPrepareHeader
(
wout
,
&
frag
,
sizeof
(
frag
));
ok
(
rc
==
MMSYSERR_NOERROR
,
...
...
@@ -534,13 +535,13 @@ static void wave_out_test_deviceOut(int device, double duration,
check_position
(
device
,
wout
,
0
,
pwfx
);
rc
=
waveOutSetVolume
(
wout
,
0x20002000
);
ok
(
rc
==
MMSYSERR_NOERROR
,
"waveOutSetVolume(%s): rc=%s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
ok
(
has_volume
?
rc
==
MMSYSERR_NOERROR
:
rc
==
MMSYSERR_NOTSUPPORTED
,
"waveOutSetVolume(%s): rc=%s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
WaitForSingleObject
(
hevent
,
INFINITE
);
rc
=
waveOutSetVolume
(
wout
,
volume
);
ok
(
rc
==
MMSYSERR_NOERROR
,
"waveOutSetVolume(%s): rc=%s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
ok
(
has_volume
?
rc
==
MMSYSERR_NOERROR
:
rc
==
MMSYSERR_NOTSUPPORTED
,
"waveOutSetVolume(%s): rc=%s
\n
"
,
dev_name
(
device
),
wave_out_error
(
rc
));
start
=
GetTickCount
();
rc
=
waveOutWrite
(
wout
,
&
frag
,
sizeof
(
frag
));
...
...
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