Skip to content

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

License

Notifications You must be signed in to change notification settings

elektrofon/channel-count

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published