Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 481 Bytes

README.md

File metadata and controls

40 lines (29 loc) · 481 Bytes

Channel Count

Get maximum number of input and output channels of an ALSA device.

Build and install

$ make
$ sudo make install

Usage:

Basic:

$ channel-count -D "hw:0,0"
Device: hw:0,0
Inputs: 128
Outputs: 128

Get number of inputs:

$ channel-count -D "hw:0,0" | awk '/Inputs/ {print $2}'
128

Use USB product name instead of ALSA device ID:

$ channel-count -U "ES-8"
Device: hw:ES8
Inputs: 12
Outputs: 16