Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

AudioClip.channels

public var channels: int;

Description

Channels in audio clip. (Read Only)

	// Prints how many channels the attached audio source has
	// 1 --> Mono
	// 2+ Stereo
	Debug.Log(audio.clip.channels);