Move strings to PROGMEM, save a few heap bytes
This commit is contained in:
1 parent
ee7febe1ec
commit
8d401a4a39
7 files changed
+32
-35
No files matched your search
@@ -28,7 +28,10 @@ AudioGeneratorAAC::AudioGeneratorAAC()
|
||||
file = NULL;
|
||||
output = NULL;
|
||||
hAACDecoder = AACInitDecoder();
|
||||
if (!hAACDecoder) { Serial.println("Out of memory error! hAACDecoder==NULL"); Serial.flush(); }
|
||||
if (!hAACDecoder) {
|
||||
Serial.printf_P(PSTR("Out of memory error! hAACDecoder==NULL\n"));
|
||||
Serial.flush();
|
||||
}
|
||||
// For sanity's sake...
|
||||
memset(buff, 0, sizeof(buff));
|
||||
memset(outSample, 0, sizeof(outSample));
|
||||
|
||||
Reference in new issue
Block a user