Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


StopAudioOutput()

Stops audio thread on Android/iOS.
Read time 1 minuteLast updated 17 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AudioModule
public static void StopAudioOutput()

Remarks

Has no effect if audio output thread is not running.
Note: When audio output thread is stopped _time, _timeSamples and _dspTime are not changing. At the same time _isPlaying remains true if it was true before stopping audio output thread. Also OnAudioFilterRead callback, Native Audio Plugins callbacks and Audio Spatializer callbacks are not being called.