diff options
author | Wohlstand <admin@wohlnet.ru> | 2022-10-26 04:35:23 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2022-10-26 04:35:23 +0300 |
commit | 5c83bcad53c1ab55715371884f05eb139459cbb7 (patch) | |
tree | fe4b0da110ac1269700d6f58406455fc55c629ad | |
parent | 75608c77c064bfc5ad7bb6d378b46b104ee2a976 (diff) | |
download | libADLMIDI-5c83bcad53c1ab55715371884f05eb139459cbb7.tar.gz libADLMIDI-5c83bcad53c1ab55715371884f05eb139459cbb7.tar.bz2 libADLMIDI-5c83bcad53c1ab55715371884f05eb139459cbb7.zip |
Fixed typo in the function pointer declaration
-rw-r--r-- | include/adlmidi.h | 6 | ||||
-rw-r--r-- | src/adlmidi.cpp | 4 | ||||
-rw-r--r-- | src/adlmidi_midiplay.hpp | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/include/adlmidi.h b/include/adlmidi.h index 6afcefc..f315f78 100644 --- a/include/adlmidi.h +++ b/include/adlmidi.h @@ -1309,7 +1309,7 @@ typedef void (*ADL_DebugMessageHook)(void *userdata, const char *fmt, ...); * @brief Loop start/end point reach hook * @param userdata Pointer to user data (usually, context of someting) */ -typedef void (*ASL_LoopPointHook)(void *userdata); +typedef void (*ADL_LoopPointHook)(void *userdata); /** * @brief Set raw MIDI event hook @@ -1361,7 +1361,7 @@ extern ADLMIDI_DECLSPEC void adl_setDebugMessageHook(struct ADL_MIDIPlayer *devi * @param loopStartHook Pointer to the callback function which will be called on every loop start point passing * @param userData Pointer to user data which will be passed through the callback. */ -extern ADLMIDI_DECLSPEC void adl_setLoopStartHook(struct ADL_MIDIPlayer *device, ASL_LoopPointHook loopStartHook, void *userData); +extern ADLMIDI_DECLSPEC void adl_setLoopStartHook(struct ADL_MIDIPlayer *device, ADL_LoopPointHook loopStartHook, void *userData); /** * @brief Set the look start point hook @@ -1377,7 +1377,7 @@ extern ADLMIDI_DECLSPEC void adl_setLoopStartHook(struct ADL_MIDIPlayer *device, * @param loopStartHook Pointer to the callback function which will be called on every loop start point passing * @param userData Pointer to user data which will be passed through the callback. */ -extern ADLMIDI_DECLSPEC void adl_setLoopEndHook(struct ADL_MIDIPlayer *device, ASL_LoopPointHook loopEndHook, void *userData); +extern ADLMIDI_DECLSPEC void adl_setLoopEndHook(struct ADL_MIDIPlayer *device, ADL_LoopPointHook loopEndHook, void *userData); /** * @brief Get a textual description of the channel state. For display only. diff --git a/src/adlmidi.cpp b/src/adlmidi.cpp index 9d8005c..c7f4de4 100644 --- a/src/adlmidi.cpp +++ b/src/adlmidi.cpp @@ -1182,7 +1182,7 @@ ADLMIDI_EXPORT void adl_setDebugMessageHook(struct ADL_MIDIPlayer *device, ADL_D } /* Set loop start hook */ -ADLMIDI_EXPORT void adl_setLoopStartHook(struct ADL_MIDIPlayer *device, ASL_LoopPointHook loopStartHook, void *userData) +ADLMIDI_EXPORT void adl_setLoopStartHook(struct ADL_MIDIPlayer *device, ADL_LoopPointHook loopStartHook, void *userData) { if(!device) return; @@ -1197,7 +1197,7 @@ ADLMIDI_EXPORT void adl_setLoopStartHook(struct ADL_MIDIPlayer *device, ASL_Loop } /* Set loop end hook */ -ADLMIDI_EXPORT void adl_setLoopEndHook(struct ADL_MIDIPlayer *device, ASL_LoopPointHook loopEndHook, void *userData) +ADLMIDI_EXPORT void adl_setLoopEndHook(struct ADL_MIDIPlayer *device, ADL_LoopPointHook loopEndHook, void *userData) { if(!device) return; diff --git a/src/adlmidi_midiplay.hpp b/src/adlmidi_midiplay.hpp index 5208f7b..cf0bb1a 100644 --- a/src/adlmidi_midiplay.hpp +++ b/src/adlmidi_midiplay.hpp @@ -51,9 +51,9 @@ struct MIDIEventHooks void *onNote_userData; // Loop start/end hooks - ASL_LoopPointHook onLoopStart; + ADL_LoopPointHook onLoopStart; void *onLoopStart_userData; - ASL_LoopPointHook onLoopEnd; + ADL_LoopPointHook onLoopEnd; void *onLoopEnd_userData; |