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
104cc7c2
Commit
104cc7c2
authored
Feb 20, 2010
by
Jörg Höhle
Committed by
Alexandre Julliard
Mar 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
midimap: Allow GetVolume by device identifier.
parent
fb8812db
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
midimap.c
dlls/midimap/midimap.c
+0
-1
midi.c
dlls/winmm/tests/midi.c
+5
-0
No files found.
dlls/midimap/midimap.c
View file @
104cc7c2
...
...
@@ -446,7 +446,6 @@ static DWORD modUnprepare(MIDIMAPDATA* mom, LPMIDIHDR lpMidiHdr, DWORD_PTR dwPar
static
DWORD
modGetVolume
(
MIDIMAPDATA
*
mom
,
DWORD
*
lpdwVolume
)
{
if
(
MIDIMAP_IsBadData
(
mom
))
return
MMSYSERR_ERROR
;
if
(
!
lpdwVolume
)
return
MMSYSERR_INVALPARAM
;
*
lpdwVolume
=
0xFFFFFFFF
;
/* tests show this initial value */
return
MMSYSERR_NOERROR
;
...
...
dlls/winmm/tests/midi.c
View file @
104cc7c2
...
...
@@ -230,6 +230,11 @@ static void test_midiOut_device(UINT udev, HWND hwnd)
* real devices with the volume GUI SW-synth settings. */
if
(
!
rc
)
trace
(
"Current volume %x on device %d
\n
"
,
ovolume
,
udev
);
/* The W95 ESFM Synthesis device reports NOTENABLED although
* GetVolume by handle works and music plays. */
rc
=
midiOutGetVolume
((
HMIDIOUT
)
udev
,
&
ovolume
);
ok
((
capsA
.
dwSupport
&
MIDICAPS_VOLUME
)
?
rc
==
MMSYSERR_NOERROR
||
broken
(
rc
==
MMSYSERR_NOTENABLED
)
:
rc
==
MMSYSERR_NOTSUPPORTED
,
"midiOutGetVolume(dev=%d) rc=%s
\n
"
,
udev
,
mmsys_error
(
rc
));
/* Tests with midiOutSetvolume show that the midi mapper forwards
* the value to the real device, but Get initially always reports
* FFFFFFFF. Therefore, a Get+SetVolume pair with the mapper is
...
...
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