How to play pcm audio buffer from a socket server using audio unit circular buffer
问题 I hope someone can help me. I am new to Objective-c and OSX and I am trying to play audio data I am receiving via socket into my audio queue. I found out this link https://stackoverflow.com/a/30318859/4274654 which in away address my issue with circular buffer. However when I try to run my project it returns It returns an error (OSStatus) -10865. That is why the code logs " Error enabling AudioUnit output bus". status = AudioUnitSetProperty(_audioUnit, kAudioOutputUnitProperty_EnableIO,