Open learex opened 1 year ago
Did you compare your implementation with the test case: https://github.com/pschatzmann/arduino-audio-tools/blob/main/examples/tests/codecs/test-codec-flac/test-codec-flac.ino
Maybe you just selected some values which are not supported...
It seems to be the writing to a file, adding the following to the code referenced breaks the encoder setup:
[...]
#include "SPI.h"
#include "SD.h"
[...]
File file;
EncodedAudioStream encoder(&file, new FLACEncoder()); // encode and write
Do you maybe know why? As per the documentation EncodedAudioStream
should support File
as an output stream type.
Hmm, that's very unlikely. Unrelated to your issue I suggest either to use the AudioKitStream class only. Or the AudioKit with the AudioActions to process the key events. Mixing AudioKitStream and AudioKit is very confusing!
I'm back at it. Do you have a working example that does something with FLAC on the AC101 Dev board lying around? This way I could work backwards and see if that example also works on my board, where it's going wrong.
I think there is a bug in the encoder. I did not find any test case...
I have a small problem: Using the small MWE below, I cannot get the FLAC Encoder to work.
Replacing
new FLACEncoder()
withnew AACEncoderFDK()
works perfectly fine though. (and changing"/rec.flac"
to"/rec.aac"
)I'm using an AIThinker AC101 V2.2 2748.