LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-21-2010, 11:07 AM   #1
wauwha
LQ Newbie
 
Registered: Jun 2005
Location: Bronderslev, Denmark
Distribution: Slackware 12.1
Posts: 16

Rep: Reputation: 0
ALSA: plug vs. rate


I'm trying to do a new .asoundrc. I want it to take any input regardless of samplerate, convert it to 44100 using the "samplerate_best" converter, and run it into a dmix.

I've come up with this:

Code:
pcm.mixer {
	type dmix
	ipc_key 1024
	slave {
		pcm "hw:0,0"
		rate 44100
	}
}

pcm.force44100 {
	type plug
	slave.pcm "mixer"
}

pcm.downsample {
	type rate
	converter "samplerate_best"
	slave.pcm "mixer"
}
force44100 works, while downsample doesn't. The error i get is:

Code:
pcm.c:6733:(snd_pcm_slave_conf) missing field rate
In principle, I don't see the difference between plug and rate, but obviously, i'm wrong. Can anyone enlighten me on why one is working while the other is not?
 
  


Reply

Tags
alsa, asound, asoundconf, asoundrc



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ALSA or OSS sampling rate change hisnumber666 Linux - Hardware 6 04-28-2006 02:11 AM
help on horiz scan rate/vert synch rate on Toshiba Satellite A35-S159 asilentmurmur *BSD 3 10-14-2005 05:29 PM
Vertical refresh rate, horizontal sync rate. NomDeGuerre Linux - Newbie 7 10-07-2005 02:36 AM
Plug-ins, Plug-ins, Plug-ins, those damn Plug-ins!! GRRRR!! Ausar Linux - Newbie 1 06-09-2004 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:13 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration