{{newin|[[0.9.0]]|090|type=function}}
{{deprecatedin|[[11.0]]|110|type=function|text=This function has been renamed to [[Source:getChannelCount]]}}
Gets the number of channels in the Source. Only 1-channel (mono) Sources can use directional and positional effects.
== Function ==
=== Synopsis ===
<source lang="lua">
channels = Source:getChannels( )
</source>
=== Arguments ===
None.
=== Returns ===
{{param|number|channels|1 for mono, 2 for stereo.}}
== See Also ==
* [[parent::Source]]
[[Category:Functions]]
{{#set:Description=Gets the number of channels in the Source.}}
== Other Languages ==
{{i18n|Source:getChannels}}