alexbw / novocaine

Painless high-performance audio on iOS and Mac OS X
http://alexbw.github.com/novocaine/
MIT License
2.23k stars 274 forks source link

Mac Catalyst (UIKit for Mac) support #137

Open virusys opened 3 years ago

virusys commented 3 years ago

Hi there;

I'm working on porting an iOS libpd project to Mac using Mac Catalyst, and I'm currently looking for a CoreAudio wrapper to process input/output samples in libpd from an Audio Unit. I was referred to this project by the main libpd dev; and while I was able to get Novocaine's sample projects to work, the project exits on launch in my Mac Catalyst project after calling [Novocaine audioManager].

Here's the error I receive:

 [as] AudioSessionClientImpl.mm:232:-[AudioSessionClientImpl AudioSessionGetPropertyImpl:size:data:]: Error: AudioSession not initialized
Error: Couldn't check the audio route ('!ini')

CoreAudio seems to be pretty tricky on the Catalyst platform because its not really the Mac platform, and not really iOS. If you had any suggestions for possible workarounds please let me know — otherwise I'll keep researching ✌️