-   Linux - General (
-   -   How do you check the samplerate in use by your sound card (Slackware64 14)? (

Holering 02-03-2013 03:23 PM

How do you check the samplerate in use by your sound card (Slackware64 14)?
I remember a while ago there was a way to issue cat command to see what sample rate was in use by your sound card. I've looked in /dev/dsp and other possible places to issue cat but have had no luck. I want to know if my sound hardware is doing bit perfect output without re-sampling.

How do you see the current sample rate in use by the sound card? I'm running Slackware64 14.0.


Nevermind figured it out I think. Here is what I did

cat /proc/asound/card0/pcm0p/sub0/hw_params

The following shows when playing music with audacious:

format: S32_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 848
buffer_size: 11024

Hope my card is indeed outputting 44100khz. Wish I had an external DAC reciever that could tell me for sure.


Okay feeling more confident now. I changed output device from plughw to plug:dmix which made output stuck at 48000khz despite changing program settings (plug:dmix is the software mixer for alsa); I changed back to plughw (hardware mixer) and now it shows 44100khz (same samplerate in use by audacious); when I use 32000khz samples (or play games at that rate) 96000khz is used (96000khz is an exact multiple of 32000khz so it's perfect)! Don't really care about multiple programs playing sound at once. Goodbye 48000khz and having to re-sample everything!

Hope this is helpful.

onebuck 02-04-2013 09:08 AM

Moderator Response
Please post your result/resolution in a new post instead of editing the original post(OP).

All times are GMT -5. The time now is 01:58 AM.