Add AAC valgrind test on the host, clean up warns
The AAC codec didn't show any issues on initial valgrind runs except for having a different stop() behavior than the MP3 one. Make them match.
This commit is contained in:
1 parent
07dee61fbf
commit
24e9d0a585
6 files changed
+60
-6
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#include <Arduino.h>
|
||||
#include "AudioFileSourceSTDIO.h"
|
||||
#include "AudioOutputSTDIO.h"
|
||||
#include "AudioGeneratorAAC.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
(void) argc;
|
||||
(void) argv;
|
||||
AudioFileSourceSTDIO *in = new AudioFileSourceSTDIO("jamonit.aac");
|
||||
AudioOutputSTDIO *out = new AudioOutputSTDIO();
|
||||
out->SetFilename("jamonit.aac.wav");
|
||||
AudioGeneratorAAC *aac = new AudioGeneratorAAC();
|
||||
|
||||
aac->begin(in, out);
|
||||
while (aac->loop()) { /*noop*/ }
|
||||
aac->stop();
|
||||
|
||||
delete aac;
|
||||
delete out;
|
||||
delete in;
|
||||
}
|
||||
Reference in new issue
Block a user