mirror of https://github.com/arendst/Tasmota.git
25 lines
567 B
C++
25 lines
567 B
C++
#include <Arduino.h>
|
|
#include "AudioFileSourceSTDIO.h"
|
|
#include "AudioOutputSTDIO.h"
|
|
#include "AudioGeneratorFLAC.h"
|
|
|
|
#define AAC "gs-16b-2c-44100hz.flac"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
(void) argc;
|
|
(void) argv;
|
|
AudioFileSourceSTDIO *in = new AudioFileSourceSTDIO(AAC);
|
|
AudioOutputSTDIO *out = new AudioOutputSTDIO();
|
|
out->SetFilename("out.flac.wav");
|
|
AudioGeneratorFLAC *flac = new AudioGeneratorFLAC();
|
|
|
|
flac->begin(in, out);
|
|
while (flac->loop()) { /*noop*/ }
|
|
flac->stop();
|
|
|
|
delete flac;
|
|
delete out;
|
|
delete in;
|
|
}
|