Move strings to PROGMEM, save a few heap bytes

This commit is contained in:
Earle F. Philhower, III committed 2017-12-14 10:50:55 -08:00
1 parent ee7febe1ec
commit 8d401a4a39
7 files changed
+32 -35

No files matched your search

+4 -1
View File
@@ -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));