Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

Obsolete
GetOutputData return a float[] is deprecated, use GetOutputData passing a pre allocated array instead.

AudioSource.GetOutputData

Switch to Manual
public function GetOutputData(numSamples: int, channel: int): float[];

Parameters

Description

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


public function GetOutputData(samples: float[], channel: int): void;

Parameters

Description

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