Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AVAudioSession error

I'm getting the following error and have no idea what's causing it.

Aug 4 15:04:56 MyiPad myApp[1523] : 15:04:56.072 ERROR: [0x78ba000] AVAudioSessionUtilities.h:124: GetProperty_DefaultToZero: AudioSessionGetProperty ('cilt') failed with error: '!siz'

In my app I'm:

  • Using AVAudioPlayers to play sounds
  • Manipulating the AVAudioSessionCategory and AVAudioSessionMode (changing between SoloAmbient/Default and PlayAndRecord/VideoChat with options: AllowBluetooth | DefaultToSpeaker)
  • Using AddLive to make webRTC video calls
  • Using the private API here to manipulate AirPlay selection

Obviously there's a lot going on so I don't expect anyone to serve this to me on a platter, but anything you can tell me about the error would be very helpful

Update 1: "cilt" stands for kAudioSessionProperty_CurrentHardwareInputLatency

Update 2: "!siz" means that the size of the property data was not correct (deprecated in iOS 7)

like image 824
JordanC Avatar asked Jul 31 '26 13:07

JordanC


1 Answers

I followed every relevant thread I could find on Google and almost all of them lead to something about the AVAudioSessionCategoryOptionMixWithOthers option. I ORed it with the other options I was using on the PlayAndRecord category and it worked...go figure.

If anyone has any insights into this mystery, please answer or comment, but for now, try that option and see what happens. I'll update when I learn more.

like image 185
JordanC Avatar answered Aug 02 '26 04:08

JordanC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!