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:
parent
bea45f84db
commit
29320a01cc
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue