Class AudioStreamingCompatibility
- Namespace
- SteamNetworkLib.Utilities
- Assembly
- SteamNetworkLib.dll
Provides runtime compatibility detection for audio streaming features. Audio streaming requires Mono runtime due to OpusSharp limitations with IL2CPP.
public static class AudioStreamingCompatibility
- Inheritance
-
AudioStreamingCompatibility
- Inherited Members
Properties
IsSupported
Gets whether audio streaming is supported in the current runtime environment.
public static bool IsSupported { get; }
Property Value
Remarks
Audio streaming is only supported on Mono runtime due to OpusSharp library limitations. IL2CPP has memory marshalling issues that cause corruption when passing audio data between managed and native code through OpusSharp.
RuntimeType
Gets the current runtime type being used.
public static string RuntimeType { get; }
Property Value
Methods
GetCompatibilityMessage()
Gets a detailed explanation of why audio streaming may not be supported.
public static string GetCompatibilityMessage()
Returns
LogCompatibilityWarning()
Logs a warning message about audio streaming compatibility to the console.
public static void LogCompatibilityWarning()
ThrowIfNotSupported()
Throws an exception if audio streaming is not supported in the current environment.
public static void ThrowIfNotSupported()
Exceptions
- PlatformNotSupportedException
Thrown when audio streaming is not supported.