If anyone have some experience that encode/decode speex audio format with AudioQueue?
I have tried to implement it by editing the SpeakHere sample. But not success!
From the apple API document, AudioQueue can support codec, but I can’t found any sample. Could anyone give me some suggestion? I already compiled speex codec successfully in my project in XCode 4.
in the apple sample code “SpeakHere” you can do some thing like this:
you can do some thing in function “MyInputBufferHandler” like
the encoder function like:
This is the general idea.Of course fact is hard, but you can see some open source of VOIP, maybe can help you.
good luck.