Enable AAC-SBR on ESP-32, there's enough RAM

AAC-SBR allows for lower bitrates to have higher quality audio output,
and is used by many web radio stations.  It was disables on the ESP8266
due to RAM limitations (about 50KB too little), but the ESP32 has no
such problem.  Enable it automatically during compile.
This commit is contained in:
Earle F. Philhower, III committed 2018-01-18 10:53:03 -08:00
1 parent bd40d8af6f
commit 244007b0c5
2 files changed
+6 -2

No files matched your search

+3 -1
View File
@@ -6,7 +6,9 @@ ESP8266 is fully supported and most mature, but we've also just introduced suppo
## Disclaimer
All this code is released under the GPL, and all of it is to be used at your own risk. If you find any bugs, please let me know via the GitHub issue tracker or drop me an email. The MOD and MP3 routines were taken from StellaPlayer and libMAD respectively. The software I2S delta-sigma 32x oversampling DAC was my own creation, and sounds quite good if I do say so myself.
The AAC decode code is from the Helix project and licensed under RealNetwork's RSPL license. For commercial use you're still going to need the usual AAC licensing from Via Licensing (http://www.via-corp.com/us/en/licensing/aac/overview.html). Please note that AAC streams with SBR are not supported (many webradio stations use this to reduce bandwidth even further). About 50KB additional RAM (above standard AAC needsz of ~25KB) is required, and there's simply not enough RAM on-chip to fit it.
The AAC decode code is from the Helix project and licensed under RealNetwork's RSPL license. For commercial use you're still going to need the usual AAC licensing from Via Licensing (http://www.via-corp.com/us/en/licensing/aac/overview.html).
On the ESP32, AAC-SBR is supported (many webradio stations use this to reduce bandwidth even further). The ESP8266, however, does not support it due to a lack of onboard RAM.
MIDI decoding comes from a highly ported MIDITONES (https://github.com/LenShustek/miditones) combined with a massively memory-optimized TinySoundFont (https://github.com/schellingb/TinySoundFont), see the respective source files for more information.
+3 -1
View File
@@ -50,7 +50,9 @@
#include <pgmspace.h>
// Can't fit in ESP8266 RAM
// #define AAC_ENABLE_SBR 1
#ifdef ESP32
#define AAC_ENABLE_SBR 1
#endif
#pragma GCC optimize ("O3")