1class:: BufChannels
2summary:: Current number of channels of soundfile in buffer.
3related:: Classes/BufDur, Classes/BufFrames, Classes/BufRateScale, Classes/BufSampleRate, Classes/BufSamples
4categories::  UGens>Buffer>Info
5
6Description::
7Get the current number of channels of soundfile.
8
9classmethods::
10
11method::kr, ir
12
13argument::bufnum
14Buffer index.
15
16returns:: the current number of channels.
17
18discussion::
19warning::
20The  code::.ir::  method is not the safest choice.
21Since a buffer can be reallocated at any time, using
22code::.ir::  will not track the changes. Use code::.kr:: instead.
23::
24
25