Skip to content
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

Fix loudspeaker usage during playback only #485

Closed
wants to merge 3 commits into from
Closed

Conversation

bcherry
Copy link
Contributor

@bcherry bcherry commented Sep 17, 2024

It seems that prior to #477 a bug existed where mute/unmute would not necessarily cause audio session reconfiguring, which masked an issue with the session configuration.

To get the system to use the loudspeaker and receiver together, at max available volume, the only reliable method I have found is using the .playAndRecord category with the .videoChat mode. This was set when the microphone was unmuted, but upon mute it reverted to .playback with .spokenAudio. That caused a significant drop in apparent audio as only the receiver would be used.

We already used .playAndRecord (with .voiceChat) in the case that you had a muted microphone but a preference to not use the speaker, so it was possible to simplify things significantly here and unify the code.

I've tested it a bit but more testing and insight would be appreciated @hiroshihorie!

@hiroshihorie
Copy link
Member

For use cases like live streaming watching, using playAndRecord means we can't lower the audio all the way down.

Is it when .play the audio isn't loud ?

@bcherry
Copy link
Contributor Author

bcherry commented Sep 18, 2024

closing in favor of #486

@bcherry bcherry closed this Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants