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:
1 parent
75268b5e3b
commit
8c6bb549f1
1 file changed
+1
@@ -513,6 +513,7 @@ bool AudioGeneratorMIDI::begin(AudioFileSource *src, AudioOutput *out)
|
||||
if (!out->begin()) return false;
|
||||
|
||||
output = out;
|
||||
file = src;
|
||||
|
||||
running = true;
|
||||
|
||||
|
||||
Reference in new issue
Block a user