I’m trying to find out how I can route more than 1 audio output from FMOD to Core Audio, if that is even possible.
Ultimately what I’m trying to accomplish is use iPhone’s headphone out for one audio output and lineout (USB AV Cable) for another. Core Audio is probably beyond FMOD’s support, but I was wondering if FMOD is capable of routing 2 unique outputs (i.e. master group and another channel group) in the first place.
- hyn asked 8 years ago
If you init FMOD using the "play and record" audio session specified via FMOD_IPHONE_EXTRADRIVERDATA, audio will by default be routed to the receiver. Even if you don’t record anything, however this is for all audio output, not on a per channel basis.
Controlling where the output goes is beyond the scope of what FMOD can provide. The iPhone is designed with the idea that there is one output location. The iPhone OS handles the switching depending on what the user has attached to the device. i.e. it uses the main speaker by default, then if head phones are plugged in it redirects to the head phones, then if something is added by the dock then that becomes the output etc.
The only override provided by the iPhone SDK is the ability to redirect output from the receiver speaker to the main speaker when recording and playing at once. This still maintains the idea of one output location though.
For academic information, FMOD can interface with two outputs on some platforms by having multiple system objects. However this is not possible on iPhone due to the nature of the devices routing and for other reasons we only permit one system object on the iPhone.
Please login first to submit.