Legacy Documentation: Version 2017.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

AudioSettings.OnAudioConfigurationChanged

Switch to Manual

Parameters

value True if the change was caused by an device change.

Description

A delegate called whenever the global audio settings are changed, either by AudioSettings.Reset or by an external factor such as the OS control panel changing the sample rate or because the default output device was changed, for example when plugging in an HDMI monitor or a USB headset.

See AudioSettings.Reset for an example.

对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答