Changeset 8ba682a
- Timestamp:
- Sep 17, 2018, 3:08:38 PM (6 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master
- Children:
- 3a8f0bf
- Parents:
- d47ad546
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
examples/utils.c
rd47ad546 r8ba682a 77 77 #if HAVE_JACK 78 78 #define MAX_MIDI_EVENTS 128 79 #define MAX_MIDI_EVENT_SIZE 3 79 80 aubio_jack_t *jack_setup; 80 81 jack_midi_event_t ev; 81 jack_midi_data_t midi_data[MAX_MIDI_EVENTS * 3];82 jack_midi_data_t midi_data[MAX_MIDI_EVENTS * MAX_MIDI_EVENT_SIZE]; 82 83 size_t midi_event_count = 0; 83 84 #endif /* HAVE_JACK */ … … 147 148 148 149 #ifdef HAVE_JACK 149 ev.size = 3;150 ev.size = MAX_MIDI_EVENT_SIZE; 150 151 ev.time = 0; // send it now 151 152 debug ("Jack activation ...\n"); … … 193 194 #ifdef HAVE_JACK 194 195 if (usejack) { 195 ev.buffer = midi_data + midi_event_count++ * 3;196 ev.buffer = midi_data + midi_event_count++ * MAX_MIDI_EVENT_SIZE; 196 197 if (midi_event_count >= MAX_MIDI_EVENTS) { 197 198 midi_event_count = 0;
Note: See TracChangeset
for help on using the changeset viewer.