mirror of
https://github.com/holub/mame
synced 2025-07-05 01:48:29 +03:00
imagedev/midiin.cpp: send All Notes Off CC when unloading a MIDI file (#10221)
This commit is contained in:
parent
9ae123ea78
commit
2e91b7bbd5
@ -203,6 +203,16 @@ void midiin_device::call_unload()
|
|||||||
{
|
{
|
||||||
m_midi->close();
|
m_midi->close();
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// send "all notes off" CC if unloading a MIDI file
|
||||||
|
for (u8 channel = 0; channel < 0x10; channel++)
|
||||||
|
{
|
||||||
|
xmit_char(0xb0 | channel);
|
||||||
|
xmit_char(123);
|
||||||
|
xmit_char(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
m_midi.reset();
|
m_midi.reset();
|
||||||
m_sequence.clear();
|
m_sequence.clear();
|
||||||
m_timer->enable(false);
|
m_timer->enable(false);
|
||||||
|
Loading…
Reference in New Issue
Block a user