Fixed some compile-breaking errors.

This commit is contained in:
OBattler
2017-07-15 18:45:30 +02:00
parent ef151cbcca
commit 0feb1c33bf
4 changed files with 7 additions and 5 deletions

View File

@@ -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;