aboutsummaryrefslogtreecommitdiff
path: root/src/midi_sequencer.h
diff options
context:
space:
mode:
authorVitaly Novichkov <admin@wohlnet.ru>2019-12-04 22:14:32 +0300
committerVitaly Novichkov <admin@wohlnet.ru>2019-12-04 22:14:32 +0300
commitb92112685b1d1ba0ae376069bc42d61300a97fa1 (patch)
treec57a00d8fc8c275c3db23d7d4109161e1d9e6340 /src/midi_sequencer.h
parent9b41e9128035a84731ea21f465a328cdf7e6494b (diff)
parente7847d9ff4a71c0f5266d611b5c20988f0709f4f (diff)
downloadlibADLMIDI-b92112685b1d1ba0ae376069bc42d61300a97fa1.tar.gz
libADLMIDI-b92112685b1d1ba0ae376069bc42d61300a97fa1.tar.bz2
libADLMIDI-b92112685b1d1ba0ae376069bc42d61300a97fa1.zip
Merge branch 'wip-new-embedded-banks' of github.com:Wohlstand/libADLMIDI into wip-new-embedded-banks
Diffstat (limited to 'src/midi_sequencer.h')
-rw-r--r--src/midi_sequencer.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/midi_sequencer.h b/src/midi_sequencer.h
index 3f4b750..4c6693f 100644
--- a/src/midi_sequencer.h
+++ b/src/midi_sequencer.h
@@ -45,6 +45,19 @@ typedef struct BW_MidiRtInterface
/*! User data which will be passed through On-Event hook */
void *onEvent_userData;
+ /*! PCM render */
+ typedef void (*PcmRender)(void *userdata, uint8_t *stream, size_t length);
+ /*! PCM render hook which catches passing of loop start point */
+ PcmRender onPcmRender;
+ /*! User data which will be passed through On-PCM-render hook */
+ void *onPcmRender_userData;
+
+ //! Sample rate
+ uint32_t pcmSampleRate;
+
+ //! Size of one sample in bytes
+ uint32_t pcmFrameSize;
+
/*! Library internal debug messages */
typedef void (*DebugMessageHook)(void *userdata, const char *fmt, ...);
/*! Debug message hook */