Documentation

Unity Engine

Download Unity

Unity Engine

Start()

Enters audio recording mode. After this Unity will output silence until AudioRenderer.Stop is called.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AudioModule
public static bool Start()

Returns

Type

Description

boolReturns
true
if the engine was switched into output recording mode. It returns
false
if the engine is already recording, or if the platform doesn't support this API.

Remarks

While recording, Unity performs audio rendering on the main thread instead of the audio thread, which can increase frame times.
Recording stops automatically if the audio system is reinitialized, for example when you change the audio settings in Project Settings, call AudioSettings.Reset, or the output device changes. Unity logs a warning when this happens. Call AudioRenderer.Start again to resume recording.