Reduce default MP3 buffer to max frame size + fluff

MP3 maximum frame size of 1441 bytes, and now that there is a real
buffering class available it makes no sense to include additional space
in ths decoder.  Reduce to the minimum to save memory in default case.
This commit is contained in:
Earle F. Philhower, III committed 2017-11-21 08:11:05 -08:00
1 parent 09b8079ef7
commit fad8af052f
1 file changed
+1 -1
+1 -1
View File
@@ -26,7 +26,7 @@ AudioGeneratorMP3::AudioGeneratorMP3()
running = false;
file = NULL;
output = NULL;
buffLen = 2048;
buffLen = 1500; // Max theoretical frame of 1441 + 8 guard bytes, with some fluff
buff = NULL;
nsCountMax = 1152/32;
}