I use the faad2 library:
https://github.com/knik0/faac/
It works perfectly to decode + play via Portaudio aac files.
The plan now is to do, like for libmpg123 and libopus, web streaming of aac files.
I did try with this site but others give the same result:
https://radiorecord.hostingradio.ru/ps96.aacp
The connection to the url file is ok and done via pipe-stream.
NeAACDecOpen()
is ok.
NeAACDecSetConfiguration()
was set with:
defObjectType = LC
and defSampleRate = 44100
NeAACDecInit()
, using the buffer of the pipe is ok and gives:
SampleRate = 44100
and Channels = 2
.
But with NeAACDecDecode()
, using buffer (minimum 4096 ko) from pipe, nothing is decoded and the result of frame_info is:
frame_info.channels = 1536
frame_info.error = 0
frame_info.samplerate = 0
What did I wrong?
Thanks.