Documentation

Unity Engine

Download Unity

Unity Engine

Stop()

Exits audio recording mode. After this audio output will be audible again.
Read time 1 minuteLast updated 10 days ago

Definition

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

Returns

Type

Description

boolReturns
true
if the engine was recording when this method is called. Returns
false
if the engine wasn't recording, in which case Unity logs an error. This includes the case where an audio system reinitialization already stopped the recording.

Remarks

This returns audio rendering to the audio thread, which AudioRenderer.Start moves onto the main thread.