1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-24 01:54:22 +00:00

Changed maxSensibleMidiFileSize in MidiFile from 2mb to 200mb to allow loading of large MIDI files

This commit is contained in:
ed 2016-09-05 10:23:42 +01:00
parent bea45f84db
commit 29320a01cc

View file

@ -248,7 +248,7 @@ bool MidiFile::readFrom (InputStream& sourceStream)
clear();
MemoryBlock data;
const int maxSensibleMidiFileSize = 2 * 1024 * 1024;
const int maxSensibleMidiFileSize = 200 * 1024 * 1024;
// (put a sanity-check on the file size, as midi files are generally small)
if (sourceStream.readIntoMemoryBlock (data, maxSensibleMidiFileSize))