-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
frontend: Add audio properties to GetClientConfiguration request #11141
frontend: Add audio properties to GetClientConfiguration request #11141
Conversation
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.
Seems mostly fine, but it would probably be better if the buffer size and fixed buffering settings were queries directly from OBS's audio configuration, rather than assumed to be whatever the currently hardcoded values are.
1da1526
to
3ae6355
Compare
Yeah this seems fine to me. |
3ae6355
to
6328a3d
Compare
Thanks @derrod. I've squashed the 3 commits into 2 and pushed the changes. This should be good to go now. |
I believe @Warchamp7 's concern here, communicated off-thread, is that this only fixes this issue for the Multitrack Video path (Twitch Enhanced Broadcasting), meaning that users who attempt to stream normally without Multitrack Video will still run into this issue with iOS viewers. I'll let him elaborate on his concerns. |
Confirming the above summary from Ryan. This PR specifically adds the ability to query the information from libobs and includes it in the autoconfig POST data, which is fine on it's own. However I want to be sure that the followup to this is not a solution that only applies when using Multitrack Video. Multitrack Video should leverage a general fix such as services recommendations being updated to support this data, or it can display an error for the user to fix themselves (As in many other cases) |
We haven't decided yet on how to followup, but if we make another attempt at resampling we'll try to target both multitrack video and non-multitrack video |
@Warchamp7 Given that this only adds the data to the POST data, is this acceptable to merge? |
6328a3d
to
d7454de
Compare
The `obs_audio_info2` struct is used in libobs for resetting audio, however there is a need for obtaining the additional fields present in the struct beyond `obs_audio_info`.
d7454de
to
cfc5a2f
Compare
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.
Looks okay at a glance.
Description
Instead of transparently resampling audio to match
GetClientConfiguration
's request send information about local audio settings toGetClientConfiguration
Currently this is only checked in OBS Studio after a configuration has already been received, which doesn't allow for potentially different configurations in case e.g. iOS support is not necessary for this particular stream
Motivation and Context
The Twitch iOS app (and/or HLS playback on iOS in general?) requires audio to be stereo or mono; with this change the requested number of channels from the go live config is being honored, so users can still set up their recordings to contain audio in whichever speaker layout they desire, while the format for streamed audio adheres to service requirements
How Has This Been Tested?
Verified audio settings are part of the
GetClientConfiguration
requestTypes of changes
Checklist: