LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-16-2017, 05:27 PM   #1
radshere
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-16-2017, 11:40 PM   #2
bigrigdriver
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.
Read http://alsa.opensrc.org/MultipleCard...sound_cards:_2

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.
 
  


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:30 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