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
bceee275
Commit
bceee275
authored
Jan 28, 2010
by
Jörg Höhle
Committed by
Alexandre Julliard
Feb 03, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
midimap: Support midiOutGetVolume, returning FFFFFFFF.
parent
a758c6a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
midimap.c
dlls/midimap/midimap.c
+20
-3
No files found.
dlls/midimap/midimap.c
View file @
bceee275
...
...
@@ -430,6 +430,22 @@ static DWORD modUnprepare(MIDIMAPDATA* mom, LPMIDIHDR lpMidiHdr, DWORD_PTR dwPar
return
MMSYSERR_NOERROR
;
}
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
;
}
static
DWORD
modSetVolume
(
MIDIMAPDATA
*
mom
,
DWORD
dwVolume
)
{
/* Native forwards it to some underlying device
* GetVolume returns what was last set here. */
FIXME
(
"stub
\n
"
);
return
MMSYSERR_NOERROR
;
}
static
DWORD
modGetDevCaps
(
UINT
wDevID
,
MIDIMAPDATA
*
mom
,
LPMIDIOUTCAPSW
lpMidiCaps
,
DWORD_PTR
size
)
{
static
const
WCHAR
name
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'm'
,
'i'
,
'd'
,
'i'
,
' '
,
'm'
,
'a'
,
'p'
,
'p'
,
'e'
,
'r'
,
0
};
...
...
@@ -441,7 +457,8 @@ static DWORD modGetDevCaps(UINT wDevID, MIDIMAPDATA* mom, LPMIDIOUTCAPSW lpMidiC
lpMidiCaps
->
wVoices
=
0
;
lpMidiCaps
->
wNotes
=
0
;
lpMidiCaps
->
wChannelMask
=
0xFFFF
;
lpMidiCaps
->
dwSupport
=
0L
;
/* Native returns volume caps of underlying device | MIDICAPS_STREAM */
lpMidiCaps
->
dwSupport
=
MIDICAPS_VOLUME
|
MIDICAPS_LRVOLUME
;
return
MMSYSERR_NOERROR
;
}
...
...
@@ -494,8 +511,8 @@ DWORD WINAPI MIDIMAP_modMessage(UINT wDevID, UINT wMsg, DWORD_PTR dwUser,
case
MODM_GETDEVCAPS
:
return
modGetDevCaps
(
wDevID
,
(
MIDIMAPDATA
*
)
dwUser
,
(
LPMIDIOUTCAPSW
)
dwParam1
,
dwParam2
);
case
MODM_GETNUMDEVS
:
return
1
;
case
MODM_GETVOLUME
:
return
MMSYSERR_NOTSUPPORTED
;
case
MODM_SETVOLUME
:
return
MMSYSERR_NOTSUPPORTED
;
case
MODM_GETVOLUME
:
return
modGetVolume
((
MIDIMAPDATA
*
)
dwUser
,
(
DWORD
*
)
dwParam1
)
;
case
MODM_SETVOLUME
:
return
modSetVolume
((
MIDIMAPDATA
*
)
dwUser
,
dwParam1
)
;
default:
FIXME
(
"unknown message %d!
\n
"
,
wMsg
);
}
...
...
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