Class AudioSettings
Inheritance
AudioSettings
Assembly: UnityEngine.dll
Syntax
public sealed class AudioSettings
Properties
driverCapabilities
Declaration
public static AudioSpeakerMode driverCapabilities { get; }
Property Value
dspTime
Declaration
public static double dspTime { get; }
Property Value
outputSampleRate
Declaration
public static int outputSampleRate { get; set; }
Property Value
speakerMode
Declaration
public static AudioSpeakerMode speakerMode { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
GetConfiguration()
Declaration
public static AudioConfiguration GetConfiguration()
Returns
GetDSPBufferSize(out Int32, out Int32)
Declaration
public static void GetDSPBufferSize(out int bufferLength, out int numBuffers)
Parameters
Type |
Name |
Description |
Int32 |
bufferLength |
|
Int32 |
numBuffers |
|
GetSpatializerPluginName()
Declaration
public static string GetSpatializerPluginName()
Returns
GetSpatializerPluginNames()
Declaration
public static string[] GetSpatializerPluginNames()
Returns
|
Improve this Doc
View Source
Reset(AudioConfiguration)
Declaration
public static bool Reset(AudioConfiguration config)
Parameters
Returns
SetDSPBufferSize(Int32, Int32)
Declaration
[Obsolete("AudioSettings.SetDSPBufferSize is deprecated and has been replaced by audio project settings and the AudioSettings.GetConfiguration/AudioSettings.Reset API.")]
public static void SetDSPBufferSize(int bufferLength, int numBuffers)
Parameters
Type |
Name |
Description |
Int32 |
bufferLength |
|
Int32 |
numBuffers |
|
|
Improve this Doc
View Source
SetSpatializerPluginName(String)
Declaration
public static void SetSpatializerPluginName(string pluginName)
Parameters
Type |
Name |
Description |
String |
pluginName |
|
Events
|
Improve this Doc
View Source
OnAudioConfigurationChanged
Declaration
public static event AudioSettings.AudioConfigurationChangeHandler OnAudioConfigurationChanged
Event Type
Extension Methods