From 8c6bb549f1171415531322a184584787c7e536a1 Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Mon, 4 Dec 2017 10:51:20 -0800 Subject: [PATCH] Fix crash on ::loop in MIDI generator Forgot to save the passed in *AudioFileSource, since it was not needed in the MIDI playback engine (it's encapsulated in a buffered object). Now with ::loop in every object, it's needed and we were calling a garbage object causing a random crash. --- src/AudioGeneratorMIDI.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AudioGeneratorMIDI.cpp b/src/AudioGeneratorMIDI.cpp index 92a600b..0c8c28b 100644 --- a/src/AudioGeneratorMIDI.cpp +++ b/src/AudioGeneratorMIDI.cpp @@ -513,6 +513,7 @@ bool AudioGeneratorMIDI::begin(AudioFileSource *src, AudioOutput *out) if (!out->begin()) return false; output = out; + file = src; running = true;