@@ -898,7 +898,8 @@ public static void ConfigureNativeLogging(bool enableNativeLogging, NativeLoggin
898898 NativeMethods . RegisterDebugLog ( null , false , nativeLoggingSeverity ) ;
899899 }
900900 }
901-
901+
902+ #if UNITY_ANDROID && ! UNITY_EDITOR
902903 /// <summary>
903904 /// Sets the graphics sync timeout.
904905 /// Graphics sync timeout determines how long the graphics device will wait on the frame copy for encoding before timing out.
@@ -909,6 +910,7 @@ public static void SetGraphicsSyncTimeout(uint nSecTimeout)
909910 {
910911 NativeMethods . SetGraphicsSyncTimeout ( nSecTimeout ) ;
911912 }
913+ #endif
912914
913915 internal static void DisposeInternal ( )
914916 {
@@ -1109,7 +1111,7 @@ public static TextureFormat GetSupportedTextureFormat(GraphicsDeviceType type)
11091111 var graphicsFormat = GetSupportedGraphicsFormat ( type ) ;
11101112 return GraphicsFormatUtility . GetTextureFormat ( graphicsFormat ) ;
11111113 }
1112-
1114+ #if UNITY_ANDROID && ! UNITY_EDITOR
11131115 public static void SetAudioProcessingModule ( bool enabled , bool echoCancellationEnabled , bool autoGainEnabled , bool noiseSuppressionEnabled , int noiseSuppressionLevel )
11141116 {
11151117 WebRTC . Context . SetAudioProcessingModule ( enabled , echoCancellationEnabled , autoGainEnabled , noiseSuppressionEnabled , noiseSuppressionLevel ) ;
@@ -1130,6 +1132,8 @@ public static void StopAudioPlayback()
11301132 Context . StopAudioPlayback ( ) ;
11311133 }
11321134
1135+ #endif
1136+
11331137 class CallbackObject
11341138 {
11351139 public readonly IntPtr ptr ;
@@ -1809,6 +1813,7 @@ public static extern IntPtr CreateVideoRenderer(
18091813 [ DllImport ( WebRTC . Lib ) ]
18101814 public static extern void FrameTransformerSendFrameToSink ( IntPtr transform , IntPtr frame ) ;
18111815
1816+ #if UNITY_ANDROID && ! UNITY_EDITOR
18121817 [ DllImport ( WebRTC . Lib ) ]
18131818 public static extern void SetGraphicsSyncTimeout ( uint nSecTimeout ) ;
18141819
@@ -1833,7 +1838,7 @@ public static extern IntPtr CreateVideoRenderer(
18331838
18341839 [ DllImport ( WebRTC . Lib ) ]
18351840 public static extern void GetAudioProcessingModuleConfig ( IntPtr context , out bool enabled , out bool echoCancellationEnabled , out bool autoGainEnabled , out bool noiseSuppressionEnabled , out int noiseSuppressionLevel ) ;
1836-
1841+ #endif
18371842 }
18381843
18391844 internal static class VideoUpdateMethods
0 commit comments