Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AudioSource.GetOutputData(int,int)

Switch to Manual

Description

Returns a block of the currently playing source's output data.

GetOutputData(samples: float[], channel: int): void;
void GetOutputData(float[] samples, int channel);
def GetOutputData(samples as float[], channel as int) as void

Description

Returns a block of the currently playing source's output data.