C# Class UnityEngine.AudioListener

Inheritance: Behaviour
ファイルを表示 Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
GetOutputData ( float samples, int channel ) : void

Provides a block of the listener (master)'s output data.

GetSpectrumData ( float samples, int channel, FFTWindow window ) : void

Provides a block of the listener (master)'s spectrum data.

Private Methods

Method Description
GetOutputData ( int numSamples, int channel ) : float[]
GetOutputDataHelper ( float samples, int channel ) : void
GetSpectrumData ( int numSamples, int channel, FFTWindow window ) : float[]
GetSpectrumDataHelper ( float samples, int channel, FFTWindow window ) : void

Method Details

GetOutputData() public static method

Provides a block of the listener (master)'s output data.

public static GetOutputData ( float samples, int channel ) : void
samples float The array to populate with audio samples. Its length must be a power of 2.
channel int The channel to sample from.
return void

GetSpectrumData() public static method

Provides a block of the listener (master)'s spectrum data.

public static GetSpectrumData ( float samples, int channel, FFTWindow window ) : void
samples float The array to populate with audio samples. Its length must be a power of 2.
channel int The channel to sample from.
window FFTWindow The FFTWindow type to use when sampling.
return void