driverCapabilities
Returns the speaker mode capability of the current audio driver. (Read Only)
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Property
- Namespace: UnityEngine
- Assembly: UnityEngine.AudioModule
public static AudioSpeakerMode driverCapabilities { get; }
Examples
using UnityEngine;public class DriverCapabilitiesExample : MonoBehaviour{ void Start() { // Request the highest speaker mode supported by the current audio driver. AudioConfiguration config = AudioSettings.GetConfiguration(); config.speakerMode = AudioSettings.driverCapabilities; if (!AudioSettings.Reset(config)) Debug.LogWarning("Failed to apply speaker mode from driver capabilities."); }}