Fixed some compile-breaking errors.
This commit is contained in:
@@ -138,18 +138,18 @@ void midi_close()
|
||||
|
||||
void midi_poll()
|
||||
{
|
||||
if (m_device && m_device->poll) m_device->poll();
|
||||
if (m_device && m_device->poll) m_device->poll(m_device);
|
||||
}
|
||||
|
||||
void play_msg(uint8_t *msg)
|
||||
{
|
||||
if (m_device->play_msg) m_device->play_msg(msg);
|
||||
if (m_device->play_msg) m_device->play_msg(m_device, msg);
|
||||
}
|
||||
|
||||
|
||||
void play_sysex(uint8_t *sysex, unsigned int len)
|
||||
{
|
||||
if (m_device->play_sysex) m_device->play_sysex(sysex, len);
|
||||
if (m_device->play_sysex) m_device->play_sysex(m_device, sysex, len);
|
||||
}
|
||||
|
||||
#define SYSEX_SIZE 1024
|
||||
@@ -159,7 +159,7 @@ void midi_write(uint8_t val)
|
||||
{
|
||||
if (!m_device) return;
|
||||
|
||||
if (m_device->write && m_device->write(val)) return;
|
||||
if (m_device->write && m_device->write(m_device, val)) return;
|
||||
|
||||
uint32_t passed_ticks;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user