mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-09 21:47:57 +00:00
MIDIDecoder bug fixes
This commit is contained in:
@@ -51,6 +51,19 @@ MIDIDecoder::receiveBytes(std::vector<uint8_t>::const_iterator begin,
|
|||||||
else
|
else
|
||||||
it--;
|
it--;
|
||||||
|
|
||||||
|
if (m_status == 0xff)
|
||||||
|
{
|
||||||
|
/* Meta events (ignored for now) */
|
||||||
|
if (it == end)
|
||||||
|
return begin;
|
||||||
|
a = *it++;
|
||||||
|
|
||||||
|
uint32_t length;
|
||||||
|
_readContinuedValue(it, end, length);
|
||||||
|
it += length;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
uint8_t chan = m_status & 0xf;
|
uint8_t chan = m_status & 0xf;
|
||||||
switch (Status(m_status & 0xf0))
|
switch (Status(m_status & 0xf0))
|
||||||
{
|
{
|
||||||
@@ -188,6 +201,7 @@ MIDIDecoder::receiveBytes(std::vector<uint8_t>::const_iterator begin,
|
|||||||
}
|
}
|
||||||
default: break;
|
default: break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return it;
|
return it;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user