aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi.cpp
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2017-12-21 02:28:49 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2017-12-21 02:28:49 +0300
commitd266773f9e0d5d58fc515470f7149701d26a49c1 (patch)
treeb9104388880c22375533e9679361c787206102ec /src/adlmidi.cpp
parentf67ae6eed4a7aa89fa593d42988dd469ab057225 (diff)
downloadlibADLMIDI-d266773f9e0d5d58fc515470f7149701d26a49c1.tar.gz
libADLMIDI-d266773f9e0d5d58fc515470f7149701d26a49c1.tar.bz2
libADLMIDI-d266773f9e0d5d58fc515470f7149701d26a49c1.zip
Added missing DLL exports on RealTime functions
Without of exports, those functions will be inavailable on Windows if libADLMIDI is built as DLL
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r--src/adlmidi.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp
index 6d38b60..55825a4 100644
--- a/src/adlmidi.cpp
+++ b/src/adlmidi.cpp
@@ -750,7 +750,7 @@ ADLMIDI_EXPORT void adl_rt_resetState(struct ADL_MIDIPlayer *device)
player->realTime_ResetState();
}
-bool adl_rt_noteOn(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 note, ADL_UInt8 velocity)
+ADLMIDI_EXPORT bool adl_rt_noteOn(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 note, ADL_UInt8 velocity)
{
if(!device)
return false;
@@ -760,7 +760,7 @@ bool adl_rt_noteOn(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 n
return player->realTime_NoteOn(channel, note, velocity);
}
-void adl_rt_noteOff(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 note)
+ADLMIDI_EXPORT void adl_rt_noteOff(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 note)
{
if(!device)
return;
@@ -770,7 +770,7 @@ void adl_rt_noteOff(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8
player->realTime_NoteOff(channel, note);
}
-void adl_rt_noteAfterTouch(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 note, ADL_UInt8 atVal)
+ADLMIDI_EXPORT void adl_rt_noteAfterTouch(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 note, ADL_UInt8 atVal)
{
if(!device)
return;
@@ -780,7 +780,7 @@ void adl_rt_noteAfterTouch(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL
player->realTime_NoteAfterTouch(channel, note, atVal);
}
-void adl_rt_channelAfterTouch(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 atVal)
+ADLMIDI_EXPORT void adl_rt_channelAfterTouch(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 atVal)
{
if(!device)
return;
@@ -790,7 +790,7 @@ void adl_rt_channelAfterTouch(struct ADL_MIDIPlayer *device, ADL_UInt8 channel,
player->realTime_ChannelAfterTouch(channel, atVal);
}
-void adl_rt_controllerChange(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 type, ADL_UInt8 value)
+ADLMIDI_EXPORT void adl_rt_controllerChange(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 type, ADL_UInt8 value)
{
if(!device)
return;
@@ -800,7 +800,7 @@ void adl_rt_controllerChange(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, A
player->realTime_Controller(channel, type, value);
}
-void adl_rt_patchChange(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 patch)
+ADLMIDI_EXPORT void adl_rt_patchChange(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 patch)
{
if(!device)
return;
@@ -810,7 +810,7 @@ void adl_rt_patchChange(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UI
player->realTime_PatchChange(channel, patch);
}
-void adl_rt_pitchBend(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt16 pitch)
+ADLMIDI_EXPORT void adl_rt_pitchBend(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt16 pitch)
{
if(!device)
return;
@@ -820,7 +820,7 @@ void adl_rt_pitchBend(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt
player->realTime_PitchBend(channel, pitch);
}
-void adl_rt_pitchBendML(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 msb, ADL_UInt8 lsb)
+ADLMIDI_EXPORT void adl_rt_pitchBendML(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 msb, ADL_UInt8 lsb)
{
if(!device)
return;
@@ -830,7 +830,7 @@ void adl_rt_pitchBendML(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UI
player->realTime_PitchBend(channel, msb, lsb);
}
-void adl_rt_bankChangeLSB(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 lsb)
+ADLMIDI_EXPORT void adl_rt_bankChangeLSB(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 lsb)
{
if(!device)
return;
@@ -840,7 +840,7 @@ void adl_rt_bankChangeLSB(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_
player->realTime_BankChangeLSB(channel, lsb);
}
-void adl_rt_bankChangeMSB(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 msb)
+ADLMIDI_EXPORT void adl_rt_bankChangeMSB(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_UInt8 msb)
{
if(!device)
return;
@@ -850,7 +850,7 @@ void adl_rt_bankChangeMSB(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_
player->realTime_BankChangeMSB(channel, msb);
}
-void adl_rt_bankChange(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_SInt16 bank)
+ADLMIDI_EXPORT void adl_rt_bankChange(struct ADL_MIDIPlayer *device, ADL_UInt8 channel, ADL_SInt16 bank)
{
if(!device)
return;