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
0a202679
Commit
0a202679
authored
Apr 25, 2007
by
Emmanuel Maillard
Committed by
Alexandre Julliard
Apr 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Implement MIDIOut_Reset.
parent
9aa9cde8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
midi.c
dlls/winecoreaudio.drv/midi.c
+26
-0
No files found.
dlls/winecoreaudio.drv/midi.c
View file @
0a202679
...
@@ -499,6 +499,31 @@ static DWORD MIDIOut_SetVolume(WORD wDevID, DWORD dwVolume)
...
@@ -499,6 +499,31 @@ static DWORD MIDIOut_SetVolume(WORD wDevID, DWORD dwVolume)
return
MMSYSERR_NOTSUPPORTED
;
return
MMSYSERR_NOTSUPPORTED
;
}
}
static
DWORD
MIDIOut_Reset
(
WORD
wDevID
)
{
unsigned
chn
;
TRACE
(
"%d
\n
"
,
wDevID
);
if
(
wDevID
>=
MIDIOut_NumDevs
)
{
WARN
(
"bad device ID : %d
\n
"
,
wDevID
);
return
MMSYSERR_BADDEVICEID
;
}
if
(
destinations
[
wDevID
].
caps
.
wTechnology
==
MOD_SYNTH
)
{
for
(
chn
=
0
;
chn
<
16
;
chn
++
)
{
/* turn off every note */
MusicDeviceMIDIEvent
(
destinations
[
wDevID
].
synth
,
0xB0
|
chn
,
0x7B
,
0
,
0
);
/* remove sustain on channel */
MusicDeviceMIDIEvent
(
destinations
[
wDevID
].
synth
,
0xB0
|
chn
,
0x40
,
0
,
0
);
}
}
else
FIXME
(
"MOD_MIDIPORT
\n
"
);
/* FIXME: the LongData buffers must also be returned to the app */
return
MMSYSERR_NOERROR
;
}
/**************************************************************************
/**************************************************************************
* modMessage
* modMessage
*/
*/
...
@@ -533,6 +558,7 @@ DWORD WINAPI CoreAudio_modMessage(UINT wDevID, UINT wMsg, DWORD dwUser, DWORD dw
...
@@ -533,6 +558,7 @@ DWORD WINAPI CoreAudio_modMessage(UINT wDevID, UINT wMsg, DWORD dwUser, DWORD dw
case
MODM_SETVOLUME
:
case
MODM_SETVOLUME
:
return
MIDIOut_SetVolume
(
wDevID
,
dwParam1
);
return
MIDIOut_SetVolume
(
wDevID
,
dwParam1
);
case
MODM_RESET
:
case
MODM_RESET
:
return
MIDIOut_Reset
(
wDevID
);
default:
default:
TRACE
(
"Unsupported message (08%x)
\n
"
,
wMsg
);
TRACE
(
"Unsupported message (08%x)
\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