From fad8af052f08034540529b7fee6a7a3e394293ed Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Tue, 21 Nov 2017 08:11:05 -0800 Subject: [PATCH] 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. --- src/AudioGeneratorMP3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AudioGeneratorMP3.cpp b/src/AudioGeneratorMP3.cpp index bca1795..fba7ba5 100644 --- a/src/AudioGeneratorMP3.cpp +++ b/src/AudioGeneratorMP3.cpp @@ -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; }