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.
This commit is contained in:
Earle F. Philhower, III committed 2017-12-04 10:51:20 -08:00
1 parent 75268b5e3b
commit 8c6bb549f1
1 file changed
+1
+1
View File
@@ -513,6 +513,7 @@ bool AudioGeneratorMIDI::begin(AudioFileSource *src, AudioOutput *out)
if (!out->begin()) return false;
output = out;
file = src;
running = true;