diff options
author | Wohlstand <admin@wohlnet.ru> | 2017-10-26 03:17:15 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2017-10-26 03:17:15 +0300 |
commit | d9a000cc0a6a8aae37f34c4cc6e23797a1ceb8c9 (patch) | |
tree | 7fc7899b2a68250666b939bc151ae797814e5f8f /include/adlmidi.h | |
parent | 650d6b913504f37ed84c5f855a85aa00d9dc34d8 (diff) | |
download | libADLMIDI-d9a000cc0a6a8aae37f34c4cc6e23797a1ceb8c9.tar.gz libADLMIDI-d9a000cc0a6a8aae37f34c4cc6e23797a1ceb8c9.tar.bz2 libADLMIDI-d9a000cc0a6a8aae37f34c4cc6e23797a1ceb8c9.zip |
Continue works on loop points and some clean-up
- Added more detailed error information while parsing MIDI file
- Added abiltiy to retrieve loop points time positions
- Added ability to change playing tempo by giving multiplier
- Removed old commented code
TODO:
- implement meta-information store and a way to retreive it
- implement hook-ability for every MIDI event
- implement ability to mute/solo every channel
Diffstat (limited to 'include/adlmidi.h')
-rw-r--r-- | include/adlmidi.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/adlmidi.h b/include/adlmidi.h index 817fe59..1279e9f 100644 --- a/include/adlmidi.h +++ b/include/adlmidi.h @@ -104,6 +104,12 @@ extern void adl_reset(struct ADL_MIDIPlayer *device); /*Get total time length of current song*/ extern double adl_totalTimeLength(struct ADL_MIDIPlayer *device); +/*Get loop start time if presented. -1 means MIDI file has no loop points */ +extern double adl_loopStartTime(struct ADL_MIDIPlayer *device); + +/*Get loop end time if presented. -1 means MIDI file has no loop points */ +extern double adl_loopEndTime(struct ADL_MIDIPlayer *device); + /*Get current time position in seconds*/ extern double adl_positionTell(struct ADL_MIDIPlayer *device); @@ -113,6 +119,9 @@ extern void adl_positionSeek(struct ADL_MIDIPlayer *device, double seconds); /*Reset MIDI track position to begin */ extern void adl_positionRewind(struct ADL_MIDIPlayer *device); +/*Set tempo multiplier: 1.0 - original tempo, >1 - play faster, <1 - play slower */ +extern void adl_setTempo(struct ADL_MIDIPlayer *device, double tempo); + /*Close and delete ADLMIDI device*/ extern void adl_close(struct ADL_MIDIPlayer *device); |