TAAE2 - Audiobus is not working on iPhone
Hello,
I am working on audiobus in my app and I am getting following error in log when i test audiobus sender function.
AudioBufferList passed to ABSenderPortSend does not match clientFormat
It is working on iPad but not working on iPhone. I even tested with TAAE2 sample code. but same error is showing.
Please help.
Comments
Can you share the code you put into the sample app, @pratik?
Please check the code :
Code is working smoothly on iPad but not on iPhone.
Please help friend.
Ah, you're not setting the clientFormat property.
But is there any reason you're using ABSenderPortSend directly? You should, if at all possible, just pass in the output audio unit.
Check out the Audiobus documentation for details and further info (I highly recommend reading the integration guide at the very least).
Well I already tried that and also read full documentation before.
and again just updated code but it's not working.
strange thing is it's only working on iPad.
I also tried following 2 things alternatively but same behavior.
and
Ah, I think I know what's happening - the output unit needs to be setup before you fetch its audio unit, so you're effectively passing NULL as the audio unit to ABSenderPort. I've just added some commits to the repository which will automatically set up the audio unit if you try to fetch it before it's setup. Grab those and try again - or just add:
before your ABSenderPort initialisation.
I just tried it on my iPhone 6S Plus and that's working.
Thanks for reply friend.
It is working on iPhone now but it seems to be little distorted when record and playback in receiver app. it is loud and distorted.
again no issue in iPad but just issue with iPhone.
Here is my new code :
What happens if you put this code in the TAAE sample app? I integrated Audiobus there to check, and it's working well