Skip to content

Instantly share code, notes, and snippets.

@Fef0
Created June 20, 2019 22:54
Show Gist options
  • Select an option

  • Save Fef0/abd858b33d6694f33bf343cdab4dc188 to your computer and use it in GitHub Desktop.

Select an option

Save Fef0/abd858b33d6694f33bf343cdab4dc188 to your computer and use it in GitHub Desktop.
Linux command for bit depth, bit rate and channel numbers ifno of an audio stream to a specific device
- Get infos about a supported stream of your audio equipment (X is your equipment, Y is the stream number)
cat /proc/asound/X/streamY
- Get infos about the actual stream your audio equipment is using, especially the bit depth, bit rate and channels number (X is your equipment)
cat /proc/asound/X/pcm0p/sub0/hw_params
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment