From ad17fde5c6753e5ed1b13087db62e3b92561227e Mon Sep 17 00:00:00 2001 From: Marvin Scholz Date: Wed, 14 Feb 2018 23:42:50 +0100 Subject: [PATCH] audio_output/coreaudio: Remove check for 10.7 This removes the check if we are running 10.7 or higher and therefore support 8.0 audio output, as this is always true given the macOS version we are targeting. --- modules/audio_output/coreaudio_common.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/modules/audio_output/coreaudio_common.c b/modules/audio_output/coreaudio_common.c index d113975432..428e042f03 100644 --- a/modules/audio_output/coreaudio_common.c +++ b/modules/audio_output/coreaudio_common.c @@ -488,26 +488,6 @@ MapOutputLayout(audio_output_t *p_aout, audio_sample_format_t *fmt, #endif } - if (aout_FormatNbChannels(fmt) >= 8 - && fmt->i_physical_channels != AOUT_CHANS_7_1) - { -#if TARGET_OS_IPHONE - const bool b_8x_support = true; -#else - SInt32 osx_min_version; - if (Gestalt(gestaltSystemVersionMinor, &osx_min_version) != noErr) - msg_Err(p_aout, "failed to check OSX version"); - const bool b_8x_support = osx_min_version >= 7; -#endif - - if (!b_8x_support) - { - msg_Warn(p_aout, "8.0 audio output not supported on this " - "device, layout will be incorrect"); - fmt->i_physical_channels = AOUT_CHANS_7_1; - } - } - } end: -- 2.11.4.GIT