obsproject / obs-browser

CEF-based OBS Studio browser plugin
GNU General Public License v2.0
771 stars 218 forks source link

Fix issue with unknown speaker layouts #393

Closed pkviet closed 1 year ago

pkviet commented 1 year ago

Description

When controlling audio through obs, if audio is set to surround sound (ex: 2.1) , sound is not captured if CEF returns a speaker layout which obs treats as unknown. This solves the issue for several CEF speaker layouts. The bug was noticed by @notr1ch .

Motivation and Context

Fix a bug.

How Has This Been Tested?

Tested that stereo audio from a YouTube video is captured when audio is set to 2.1. Such a stereo audio is returned by cef as FL FR FC. Previously, the 3 channels were muted. Now the FL and FR are passed to the 2.1 output.

Types of changes