aboutsummaryrefslogtreecommitdiff
path: root/src/adlmidi.cpp
diff options
context:
space:
mode:
authorWohlstand <admin@wohlnet.ru>2017-11-20 04:06:31 +0300
committerWohlstand <admin@wohlnet.ru>2017-11-20 04:06:31 +0300
commit93078915431d1fcd8ece793201cbeda0d32d8722 (patch)
tree158d42c54eda421a849e05847543427f069fb616 /src/adlmidi.cpp
parent549bcaa5dcd460a6aa5143776eeea6c4bde1cf5f (diff)
downloadlibADLMIDI-93078915431d1fcd8ece793201cbeda0d32d8722.tar.gz
libADLMIDI-93078915431d1fcd8ece793201cbeda0d32d8722.tar.bz2
libADLMIDI-93078915431d1fcd8ece793201cbeda0d32d8722.zip
Use const char* and const void* as input data types
Diffstat (limited to 'src/adlmidi.cpp')
-rw-r--r--src/adlmidi.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp
index 18e5243..e96c757 100644
--- a/src/adlmidi.cpp
+++ b/src/adlmidi.cpp
@@ -222,7 +222,7 @@ ADLMIDI_EXPORT void adl_setVolumeRangeModel(struct ADL_MIDIPlayer *device, int v
play->opl.ChangeVolumeRangesModel(static_cast<ADLMIDI_VolumeModels>(volumeModel));
}
-ADLMIDI_EXPORT int adl_openBankFile(struct ADL_MIDIPlayer *device, char *filePath)
+ADLMIDI_EXPORT int adl_openBankFile(struct ADL_MIDIPlayer *device, const char *filePath)
{
if(device && device->adl_midiPlayer)
{
@@ -243,7 +243,7 @@ ADLMIDI_EXPORT int adl_openBankFile(struct ADL_MIDIPlayer *device, char *filePat
return -1;
}
-ADLMIDI_EXPORT int adl_openBankData(struct ADL_MIDIPlayer *device, void *mem, long size)
+ADLMIDI_EXPORT int adl_openBankData(struct ADL_MIDIPlayer *device, const void *mem, unsigned long size)
{
if(device && device->adl_midiPlayer)
{
@@ -264,7 +264,7 @@ ADLMIDI_EXPORT int adl_openBankData(struct ADL_MIDIPlayer *device, void *mem, lo
return -1;
}
-ADLMIDI_EXPORT int adl_openFile(ADL_MIDIPlayer *device, char *filePath)
+ADLMIDI_EXPORT int adl_openFile(ADL_MIDIPlayer *device, const char *filePath)
{
if(device && device->adl_midiPlayer)
{
@@ -285,7 +285,7 @@ ADLMIDI_EXPORT int adl_openFile(ADL_MIDIPlayer *device, char *filePath)
return -1;
}
-ADLMIDI_EXPORT int adl_openData(ADL_MIDIPlayer *device, void *mem, long size)
+ADLMIDI_EXPORT int adl_openData(ADL_MIDIPlayer *device, const void *mem, unsigned long size)
{
if(device && device->adl_midiPlayer)
{