-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AVAudioEngine version #526
base: main
Are you sure you want to change the base?
Conversation
private func _asyncConfigure(newState: State, oldState: State) async throws { | ||
try await _configureRunner.run { | ||
self.log("\(oldState) -> \(newState)") | ||
let configureFunc = newState.customConfigureFunc ?? self.defaultConfigureAudioSessionFunc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sure you also remove the customConfigureFunc
property, and it seems like this will need to be a breaking change so we'll want to ensure this release goes out as 2.1.x and includes notes about this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this is not intended to merge "as-is", I'll need to figure out backward compatibility.
The track counting approach was not a good idea. Instead this version gets direct callback from the audio device module, that session configuration is required.
config.categoryOptions = [.allowBluetooth, .allowBluetoothA2DP, .allowAirPlay] | ||
config.mode = AVAudioSession.Mode.videoChat.rawValue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my 2c: it might be worth allowing end-users to customize these options. our current setup requires .defaultToSpeaker
. We also did not allow airplay specifically because of issues with noise cancellation.
(THANK YOU for going down the AVAudioEngine rabbit hole. I know it's a huge one)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I will allow devs to customize the session. 🙂
Uses lib with : webrtc-sdk/webrtc#158
Needs more testing with devices, please don't ship.
TODO