Add AAC playback using Helix from RealNetworks
AACs can now be played back on the ESP8266 thanks to the RealNetworks Helix project's AAC decoder. SBR is *not* supported, as there is not enough RAM in the system to support it.
This commit is contained in:
1 parent
14010d340e
commit
551a8ac0bb
30 files changed
+11379
-3
No files matched your search
@@ -0,0 +1,32 @@
|
||||
#include <Arduino.h>
|
||||
#include "AudioGeneratorAAC.h"
|
||||
#include "AudioOutputI2SDAC.h"
|
||||
#include "AudioFileSourcePROGMEM.h"
|
||||
#include "sampleaac.h"
|
||||
|
||||
AudioFileSourcePROGMEM *in;
|
||||
AudioGeneratorAAC *aac;
|
||||
AudioOutputI2SDAC *out;
|
||||
|
||||
void setup()
|
||||
{
|
||||
Serial.begin(115200);
|
||||
|
||||
in = new AudioFileSourcePROGMEM(sampleaac, sizeof(sampleaac));
|
||||
aac = new AudioGeneratorAAC();
|
||||
out = new AudioOutputI2SDAC();
|
||||
|
||||
aac->begin(in, out);
|
||||
}
|
||||
|
||||
|
||||
void loop()
|
||||
{
|
||||
if (aac->isRunning()) {
|
||||
aac->loop();
|
||||
} else {
|
||||
Serial.printf("AAC done\n");
|
||||
delay(1000);
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user