Legacy Documentation: Version 5.2
LanguageEnglish
  • C#
  • JS

Script language

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

AudioSpeakerMode

enumeration

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

Sumbission failed

For some reason your suggested change could not be submitted. Please try again 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

Description

These are speaker types defined for use with AudioSettings.speakerMode.

Your project's default speaker mode can be set in the Audiomanager through Edit->Project Settings->Audio.

See Also: AudioSettings, Audio Manager.

Variables

RawChannel count is unaffected.
MonoChannel count is set to 1. The speakers are monaural.
StereoChannel count is set to 2. The speakers are stereo. This is the editor default.
QuadChannel count is set to 4. 4 speaker setup. This includes front left, front right, rear left, rear right.
SurroundChannel count is set to 5. 5 speaker setup. This includes front left, front right, center, rear left, rear right.
Mode5point1Channel count is set to 6. 5.1 speaker setup. This includes front left, front right, center, rear left, rear right and a subwoofer.
Mode7point1Channel count is set to 8. 7.1 speaker setup. This includes front left, front right, center, rear left, rear right, side left, side right and a subwoofer.
PrologicChannel count is set to 2. Stereo output, but data is encoded in a way that is picked up by a Prologic/Prologic2 decoder and split into a 5.1 speaker setup.