Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-03-2013, 03:23 PM   #1
Registered: Feb 2010
Distribution: Slackware
Posts: 184

Rep: Reputation: 22
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.

Last edited by Holering; 02-03-2013 at 04:18 PM.
Old 02-04-2013, 09:08 AM   #2
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,831
Blog Entries: 27

Rep: Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129Reputation: 2129
Moderator Response

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Opera 10 Inline spelling check not working on Slackware64 13.0 GazL Slackware 10 10-04-2009 06:10 AM
cmd line prog to convert mp3 samplerate kmasaryk Linux - Desktop 4 11-25-2006 12:05 AM
check sound card type? jaonox Linux - Hardware 1 08-15-2006 02:48 AM
Sound Card Install - cpp fails sanity check? - alsa RGB1 Linux - Hardware 1 10-31-2004 08:21 PM
Having trouble with an AC97 with an integrated sound card? Check here typho Linux - Hardware 0 10-13-2004 11:11 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration