GetOutputData
Deprecated Version. Returns a block of the currently playing source's output data.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.AudioModule
GetOutputData(int, int)
Deprecated Version. Returns a block of the currently playing source's output data.
public 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 currently playing source's output data.
public void GetOutputData(float[] samples, int channel)
Parameters
Remarks
The array given in the samples parameter will be filled with the requested data.
AudioSource.GetOutputDataAdditional Resources: AudioSource.GetSpectrumData, AudioListener.GetSpectrumData, AudioListener.GetOutputData.