Version: Unity 6.1 Alpha (6000.1)
LanguageEnglish
  • C#

AudioSettings.Mobile.StopAudioOutput

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual

Declaration

public static void StopAudioOutput();

Description

Stops audio thread on Android/iOS.

Has no effect if audio output thread is not running.

Note: When audio output thread is stopped AudioSource.time, AudioSource.timeSamples and AudioSettings.dspTime are not changing. At the same time AudioSource.isPlaying remains true if it was true before stopping audio output thread. Also MonoBehaviour.OnAudioFilterRead callback, Native Audio Plugins callbacks and Audio Spatializer callbacks are not being called.