LinuxQuestions.org
Visit Jeremy's Blog.
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 05-28-2004, 12:06 PM   #1
redneon
Member
 
Registered: Aug 2003
Posts: 103

Rep: Reputation: 15
Set default ALSA device


Is it possible to set the default ALSA device? I have an Audigy2 NX card and have to create a device (called 48000) to upmix 44000hz sample rates to 48000hz so they sound right. My ~/.asoundrc file looks like this at the moment...

pcm.48000Hz {
type plug
slave {
pcm "hw:0,0"
rate 48000
}
route_policy default
}

Is there any way to get ALSA to automatically use this device so the sound always sounds right?

Darrell
 
Old 05-28-2004, 01:44 PM   #2
proudclod
Member
 
Registered: May 2004
Distribution: Fedora Core 2
Posts: 381

Rep: Reputation: 30
Ditto, this would be very useful.
 
Old 06-01-2004, 09:02 AM   #3
redneon
Member
 
Registered: Aug 2003
Posts: 103

Original Poster
Rep: Reputation: 15
I've figured out how to do it thanks so someone on the ALSA mailing list. This is my ~/.asoundrc file...

Code:
pcm.NX48000Hz
{
	type plug
	slave
	{
		pcm "hw:0,0"
		rate 48000
	}
	route_policy default
}

pcm.!default = NX48000Hz
That should work a treat. Is does for me anyways.

Darrell
 
  


Reply



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
setting the alsa default device Byenary Linux - Newbie 3 06-12-2005 12:52 PM
Getting error: "ALSA device "default" is already in use by another program." brynjarh Debian 7 02-04-2005 11:45 AM
default alsa device? tw001_tw Slackware 3 10-21-2004 11:20 AM
ALSA error: ALSA device "default" is already in use by another program. darkleaf Linux - Software 2 07-20-2004 04:34 PM
ALSA: Setting default device, MDK10-C. nATEmATE Linux - Software 0 05-07-2004 05:54 PM

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

All times are GMT -5. The time now is 12:29 PM.

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