Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-16-2017, 06:27 PM   #1
LQ Newbie
Registered: Oct 2017
Posts: 1

Rep: Reputation: Disabled
Is it possible to modify ALSA configuration (asoundrc or asound.conf) while an application is running?

I have an asound.conf file that defines aliases to hardware card.

pcm.test {
type hw
card 0
device 0
subdevice 0

I want to be able to dynamically change this config file while application is feeding audio data to test. That is change it to something like this:

pcm.test {
type hw
card 0
device 0
subdevice 1

This change does not take effect till I restart the application. Is there a way to dynamically make this alias switch without restarting the application? Can I use any other ALSA plugin for this? Appreciate any suggestions.
Old 10-17-2017, 12:40 AM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
You *might* be able to do it with a combination of configuration files and command line to switch from one card to another.

Start at "Multiple Sound Cards -- Example on Debian GNU/Linux" and read through to "Example commands and options for selecting sound cards".

The link referenced above doesn't state that you can switch while and application is running. It just tells how to switch from one card to another.

Trying in on the fly is up to you.

Good luck.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Allowing a normal user application to modify network configuration MALDATA Linux - Security 4 03-16-2017 02:34 AM
Codec errors when creating ALSA /etc/modprobe.d/asound.conf for HDMI masuch Linux - Newbie 0 06-01-2012 03:19 PM
ALSA asound.conf preventing PCM devices from being listed Luc484 Linux - Hardware 2 04-11-2012 05:27 PM
How to do Alsa configuration (asoundrc) on-the-run while an application is running? satmeet Linux - General 3 06-02-2008 10:18 AM
Need help for ALSA Sound /etc/asound.conf or .asoundrc tho_x_tran Linux - Hardware 0 08-09-2004 03:34 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:46 AM.

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