libobs/media-io: Replace quad with 4.0
(also obs, deps/media-playback, libobs/audio-monitoring, decklink, linux-alsa, linux-pulseaudio, mac-capture, obs-ffmpeg, win-dshow, win-wasapi) Default channel layout for 4 channels is 4.0 in FFmpeg. Replacing quad with 4.0 will improve compatibility since FFmpeg has better support of its default channel layouts.
This commit is contained in:
parent
fb580535c9
commit
67e48ecc2c
19 changed files with 25 additions and 29 deletions
|
|
@ -31,7 +31,7 @@ static inline int ConvertChannelFormat(speaker_layout format)
|
|||
{
|
||||
switch (format) {
|
||||
case SPEAKERS_2POINT1:
|
||||
case SPEAKERS_QUAD:
|
||||
case SPEAKERS_4POINT0:
|
||||
case SPEAKERS_4POINT1:
|
||||
case SPEAKERS_5POINT1:
|
||||
case SPEAKERS_7POINT1:
|
||||
|
|
@ -46,7 +46,7 @@ static inline int ConvertChannelFormat(speaker_layout format)
|
|||
static inline audio_repack_mode_t ConvertRepackFormat(speaker_layout format)
|
||||
{
|
||||
switch (format) {
|
||||
case SPEAKERS_QUAD:
|
||||
case SPEAKERS_4POINT0:
|
||||
return repack_mode_8to4ch_swap23;
|
||||
case SPEAKERS_4POINT1:
|
||||
return repack_mode_8to5ch_swap23;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue