mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 21:59:59 +00:00
winealsa: Use the symbolic name for MIDI_CTL_ALL_SOUNDS_OFF.
MIDI_CTL_ALL_SOUNDS_OFF is channel dependent. Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4c535a7f75
commit
0bd43e7785
|
@ -922,13 +922,10 @@ static UINT midi_out_reset(WORD dev_id)
|
|||
if (!dests[dev_id].bEnabled) return MIDIERR_NODEVICE;
|
||||
|
||||
/* stop all notes */
|
||||
/* FIXME: check if 0x78B0 is channel dependent or not. I coded it so that
|
||||
* it's channel dependent...
|
||||
*/
|
||||
for (chn = 0; chn < 16; chn++)
|
||||
{
|
||||
/* turn off every note */
|
||||
midi_out_data(dev_id, 0x7800 | MIDI_CMD_CONTROL | chn);
|
||||
midi_out_data(dev_id, (MIDI_CTL_ALL_SOUNDS_OFF << 8) | MIDI_CMD_CONTROL | chn);
|
||||
/* remove sustain on all channels */
|
||||
midi_out_data(dev_id, (MIDI_CTL_SUSTAIN << 8) | MIDI_CMD_CONTROL | chn);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue