Title: [269644] trunk/Source
Revision
269644
Author
jer.no...@apple.com
Date
2020-11-10 13:17:29 -0800 (Tue, 10 Nov 2020)

Log Message

Unreviewed internal macOS build-fix.

Source/WebCore/PAL:

* pal/avfoundation/OutputDevice.mm:
(PAL::OutputDevice::supportsSpatialAudio const):

Source/WTF:

* wtf/PlatformHave.h:

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (269643 => 269644)


--- trunk/Source/WTF/ChangeLog	2020-11-10 21:11:27 UTC (rev 269643)
+++ trunk/Source/WTF/ChangeLog	2020-11-10 21:17:29 UTC (rev 269644)
@@ -1,3 +1,9 @@
+2020-11-10  Jer Noble  <jer.no...@apple.com>
+
+        Unreviewed internal macOS build-fix.
+
+        * wtf/PlatformHave.h:
+
 2020-11-10  Rob Buis  <rb...@igalia.com>
 
         Parse aspect-ratio CSS property

Modified: trunk/Source/WTF/wtf/PlatformHave.h (269643 => 269644)


--- trunk/Source/WTF/wtf/PlatformHave.h	2020-11-10 21:11:27 UTC (rev 269643)
+++ trunk/Source/WTF/wtf/PlatformHave.h	2020-11-10 21:17:29 UTC (rev 269644)
@@ -755,3 +755,10 @@
 #if PLATFORM(IOS_FAMILY) && !PLATFORM(WATCHOS) && !PLATFORM(APPLETV)
 #define HAVE_CNCONTACTPICKERVIEWCONTROLLER 1
 #endif
+
+#if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 110000) \
+    || ((PLATFORM(IOS) || PLATFORM(MACCATALYST)) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 140000) \
+    || (PLATFORM(WATCHOS) && __WATCH_OS_VERSION_MIN_REQUIRED >= 70000) \
+    || (PLATFORM(APPLETV) && __TV_OS_VERSION_MIN_REQUIRED >= 140000)
+#define HAVE_AVOUTPUTDEVICE_SPATIALAUDIO 1
+#endif

Modified: trunk/Source/WebCore/PAL/ChangeLog (269643 => 269644)


--- trunk/Source/WebCore/PAL/ChangeLog	2020-11-10 21:11:27 UTC (rev 269643)
+++ trunk/Source/WebCore/PAL/ChangeLog	2020-11-10 21:17:29 UTC (rev 269644)
@@ -1,5 +1,12 @@
 2020-11-10  Jer Noble  <jer.no...@apple.com>
 
+        Unreviewed internal macOS build-fix.
+
+        * pal/avfoundation/OutputDevice.mm:
+        (PAL::OutputDevice::supportsSpatialAudio const):
+
+2020-11-10  Jer Noble  <jer.no...@apple.com>
+
         Add support for AudioConfiguration.spatialRendering
         https://bugs.webkit.org/show_bug.cgi?id=218727
         <rdar://problem/71213348>

Modified: trunk/Source/WebCore/PAL/pal/avfoundation/OutputDevice.mm (269643 => 269644)


--- trunk/Source/WebCore/PAL/pal/avfoundation/OutputDevice.mm	2020-11-10 21:11:27 UTC (rev 269643)
+++ trunk/Source/WebCore/PAL/pal/avfoundation/OutputDevice.mm	2020-11-10 21:17:29 UTC (rev 269644)
@@ -59,8 +59,12 @@
 
 bool OutputDevice::supportsSpatialAudio() const
 {
+#if HAVE(AVOUTPUTDEVICE_SPATIALAUDIO)
     return [m_device respondsToSelector:@selector(supportsHeadTrackedSpatialAudio)]
         && [m_device supportsHeadTrackedSpatialAudio];
+#else
+    return false;
+#endif
 }
 
 }
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to