iOS AudioSession Category

How do I control the audio session category with FMOD?
In other words, I want my app to record or play in the background. This is configured by setting the proper audio session category.

Also, is there a way to record data with FMOD on iOS and get access to samples directly without going through a file?



The AudioCategory is set up using the normal iOS native SDK before initializing FMOD (this is different from FMOD 4 where we internally handled it).

See “working with categories

To get access to recorded samples, use System::recordStart to begin recording, monitor System::getRecordPosition and use Sound::lock / Sound::unlock to access the data.

1 Like