aboutsummaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/adlmidi.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/adlmidi.h b/include/adlmidi.h
index 6dc930c..c67952f 100644
--- a/include/adlmidi.h
+++ b/include/adlmidi.h
@@ -108,10 +108,10 @@ extern void adl_setLogarithmicVolumes(struct ADL_MIDIPlayer *device, int logvol)
extern void adl_setVolumeRangeModel(struct ADL_MIDIPlayer *device, int volumeModel);
/*Load WOPL bank file from File System*/
-extern int adl_openBankFile(struct ADL_MIDIPlayer *device, char *filePath);
+extern int adl_openBankFile(struct ADL_MIDIPlayer *device, const char *filePath);
/*Load WOPL bank file from memory data*/
-extern int adl_openBankData(struct ADL_MIDIPlayer *device, void *mem, long size);
+extern int adl_openBankData(struct ADL_MIDIPlayer *device, const void *mem, unsigned long size);
/*Returns name of currently used OPL3 emulator*/
@@ -130,10 +130,10 @@ extern const char *adl_errorInfo(struct ADL_MIDIPlayer *device);
extern struct ADL_MIDIPlayer *adl_init(long sample_rate);
/*Load MIDI file from File System*/
-extern int adl_openFile(struct ADL_MIDIPlayer *device, char *filePath);
+extern int adl_openFile(struct ADL_MIDIPlayer *device, const char *filePath);
/*Load MIDI file from memory data*/
-extern int adl_openData(struct ADL_MIDIPlayer *device, void *mem, long size);
+extern int adl_openData(struct ADL_MIDIPlayer *device, const void *mem, unsigned long size);
/*Resets MIDI player*/
extern void adl_reset(struct ADL_MIDIPlayer *device);