I'm going to dive into the apple documentation then for AVAudioSession a bit.
Back to Juce, I'm working out how I go about incorporating an mm file like that into a project. I'd love to just go through some sample code but I've not found much.
Currently, I've created the file via X-code (I created an Objective C class, then renamed file to *.mm).
I've got a class and function in it that compiles fine, call it iosSpecial, and it inherits from NSObject (default behavior when creating file in xcode).
I then changed my Main.cpp file to Main.mm, so I can include my new iosSpecial.h file (so far, so good).
Is that the correct technique for doing this? I'm learning a bit about it by reading this article:
http://philjordan.eu/article/mixing-objective-c-c++-and-objective-c++
I think I understand that I will need to wrap my Objective-C calls in C++ functions, then I should be good.
Does my understanding seem sound? I'm in really new territory here.
For the record - dissecting the article I linked, figuring out which files to make *.mm, and figuring out where they all need to live, I was able to get notification about the headset.
Glory be - thank yall so much for the help!!!
Still curious about my original question - how do I actually use the added functionality of an iOSAudioIODevice? Must the file I call it in be an mm not a cpp file?