Player with FLAC decoder. Is possible? #733
-
Hi @pschatzmann. I´m trying to add FLAC decoding on my player that I have running with WAV and MP3 well. I´m using FLACDecoder object, but when I try to link decoder with player throught player.setDecoder(decoderFLAC) I get this error,
I put a fragment of my code
On the other hand I try to use FLAC Foxen decoder, but the library not found flac-foxen.h Could you help on both cases? Thanks in advanced. In addition. CodecFLAC.h return severals error. See these below.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Hi @pschatzmann again. I´m testing FLACDecoderFoxen bacause this is the only one that works with player. Observing debug data, and I see that buffer collapses. I have increase it and decoding works but nothing is listen throught speaker. With MP3 and WAV all is ok. What am I doing wrong? |
Beta Was this translation helpful? Give feedback.
-
Hi @pschatzmann I have checked this code with Audiokit A1S and playing is very bad. The playing is not continuous, it is slow and all the time the sound is breaking up. What kind of FLAC do you test? Could you pass one sample for do a testing? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
I don't see how this is related to A2DP ? I think this should be in an AudioTools discussion...
If you check the Documentation of the AudioPlayer, you will see that it only supports AudioDecoder and not StreamingDecoder instances.
I guess the issue is with a bug in the begin() of the FLACDecoderFoxen after end() has been called: I committed some corrections.
The following test sketch plays like a charm on an AudioKit (even with PSRAM disabled):