Class AudioListener
Inheritance
AudioListener
Assembly: UnityEngine.dll
Syntax
[RequireComponent(typeof(Transform))]
public sealed class AudioListener : AudioBehaviour
Properties
pause
Declaration
public static bool pause { get; set; }
Property Value
velocityUpdateMode
Declaration
public AudioVelocityUpdateMode velocityUpdateMode { get; set; }
Property Value
volume
Declaration
public static float volume { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
GetOutputData(Int32, Int32)
Declaration
[Obsolete("GetOutputData returning a float[] is deprecated, use GetOutputData and pass a pre allocated array instead.")]
public static float[] GetOutputData(int numSamples, int channel)
Parameters
Type |
Name |
Description |
Int32 |
numSamples |
|
Int32 |
channel |
|
Returns
|
Improve this Doc
View Source
GetOutputData(Single[], Int32)
Declaration
public static void GetOutputData(float[] samples, int channel)
Parameters
|
Improve this Doc
View Source
GetSpectrumData(Int32, Int32, FFTWindow)
Declaration
[Obsolete("GetSpectrumData returning a float[] is deprecated, use GetOutputData and pass a pre allocated array instead.")]
public static float[] GetSpectrumData(int numSamples, int channel, FFTWindow window)
Parameters
Returns
|
Improve this Doc
View Source
GetSpectrumData(Single[], Int32, FFTWindow)
Declaration
public static void GetSpectrumData(float[] samples, int channel, FFTWindow window)
Parameters
Extension Methods