Is there a KMP solution for decoding in-memory AAC...
# multiplatform
m
Is there a KMP solution for decoding in-memory AAC audio data? In particular, I’m looking for something that works on iOS (I already have an Android solution using native APIs), but later also desktop.
f
iOS has a native feature about encoding/decode AAC
m
Thanks Francois, is that only decoding files though? I need to decode in-memory data.
f
Never try but chatgpt say yes 😄
m
Haha, Claude said no, so took me down some other path. I’ll investigate…
e
on desktop, perhaps https://jaadec.sourceforge.net/ with javax.sound
n
@Mark I am using GStreamer Java
m
The audio data I have is raw AAC (mono, 44100Hz). I have a decoder interface that takes one frame at a time and returns a ByteArray of decoded PCM data. My implementation on Android works fine. The codec is sent a config packet (
[18, 8]
) and then the raw AAC frames are sent one by one. I can’t seem to get the configuration right on ios. Claude has had about 100 attempts and already given up!
f
For audiotoolbox, you should look after the apple dev forum or stackoverflow.
That’s purely iOS api not kotlin