GetOutputData
Deprecated Version. Returns a block of the listener (master)'s output data.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AudioModule
GetOutputData(int, int)
Deprecated Version. Returns a block of the listener (master)'s output data.
public static float[] GetOutputData(int numSamples, int channel)
Parameters
Returns
Type | Description |
|---|---|
| float[] |
Remarks
This variation of the function allocates a new array each time it is called. Use the Non-alloc version instead for better performance.
GetOutputData(float[], int)
Provides a block of the listener (master)'s output data.
public static void GetOutputData(float[] samples, int channel)
Parameters
Remarks
The array given in the samples parameter will be filled with the requested data.
GetOutputDataAdditional Resources: AudioListener.GetSpectrumData, AudioSource.GetSpectrumData, AudioSource.GetOutputData.