googlevr / gvr-ios-sdk

Google VR SDK for iOS
http://developers.google.com/vr/ios/
Other
645 stars 191 forks source link

GVR Audio Keeps Changing AVAudioSession Category to AVAudioSessionCategorySoloAmbient #295

Closed achuvm closed 6 years ago

achuvm commented 6 years ago

Hi,

We're using the iOS GVR SDK with the Audio API for playback but we also want to enable audio recording which we're doing through AVAudioRecorder. To do this, we need to set the AVAudioSession's category to AVAudioSessionCategoryRecord or AVAudioSessionCategoryRecordAndPlayback.

However, it seems like the GVR AudioApi object (https://developers.google.com/vr/android/ndk/reference/class/gvr/audio-api) is constantly changing the category back to AVAudioSessionCategoryAmbientSolo which is causing my AVAudioRecorder to stop recording audio.

We're using the following pod versions:

pod 'GVRKit', '1.100.0'
pod 'GVRAudioSDK', '1.100.0'
jkammerl commented 6 years ago

Thanks for the report. This issue has been already addressed in our code and it should be fixed in the next upcoming release.

achuvm commented 6 years ago

Hi @jkammerl,

Is there an ETA on the next release?

Thanks!