LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 02-03-2013, 04:23 PM   #1
Holering
Member
 
Registered: Feb 2010
Distribution: Slackware
Posts: 162

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.

EDIT:

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:

access: MMAP_INTERLEAVED
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.

EDIT:

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 05:18 PM.
 
Old 02-04-2013, 10:08 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,400
Blog Entries: 3

Rep: Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483Reputation: 1483
Moderator Response

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


Reply


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 07:10 AM
cmd line prog to convert mp3 samplerate kmasaryk Linux - Desktop 4 11-25-2006 01:05 AM
check sound card type? jaonox Linux - Hardware 1 08-15-2006 03:48 AM
Sound Card Install - cpp fails sanity check? - alsa RGB1 Linux - Hardware 1 10-31-2004 09:21 PM
Having trouble with an AC97 with an integrated sound card? Check here typho Linux - Hardware 0 10-14-2004 12:11 AM


All times are GMT -5. The time now is 03:43 PM.

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