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() 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) 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) 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 #define SYSEX_SIZE 1024
@@ -159,7 +159,7 @@ void midi_write(uint8_t val)
{ {
if (!m_device) return; 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; uint32_t passed_ticks;

View File

@@ -42,6 +42,7 @@
#include "../video/video.h" #include "../video/video.h"
#include "../video/vid_ega.h" #include "../video/vid_ega.h"
#include "../mouse.h" #include "../mouse.h"
#include "../sound/midi.h"
#include "../sound/sound.h" #include "../sound/sound.h"
#include "../sound/snd_dbopl.h" #include "../sound/snd_dbopl.h"
#include "plat_keyboard.h" #include "plat_keyboard.h"

View File

@@ -18,6 +18,7 @@
#include "../ibm.h" #include "../ibm.h"
#include "../config.h" #include "../config.h"
#include "../device.h" #include "../device.h"
#include "../sound/midi.h"
#include "plat_midi.h" #include "plat_midi.h"
#define NO_UNICODE /*FIXME: not Unicode? */ #define NO_UNICODE /*FIXME: not Unicode? */
#include "win.h" #include "win.h"

View File

@@ -28,8 +28,8 @@
#include "nvr.h" #include "nvr.h"
#include "scsi.h" #include "scsi.h"
#include "win/plat_joystick.h" #include "win/plat_joystick.h"
#include "win/plat_midi.h"
#include "sound/midi.h" #include "sound/midi.h"
#include "win/plat_midi.h"
#include "sound/snd_dbopl.h" #include "sound/snd_dbopl.h"
#include "sound/snd_mpu401.h" #include "sound/snd_mpu401.h"
#include "sound/snd_opl.h" #include "sound/snd_opl.h"