How to do Alsa configuration (asoundrc) on-the-run while an application is running?
- From: satmeet.ubhi@xxxxxxxxx
- Date: Fri, 30 May 2008 02:49:39 -0700 (PDT)
Hi,
I am new to alsa and need to know if i can contorl the volume on
different channels dynamically or on-the-fly by modifying file
asoundrc.
We have written the following lines of code-
<code>
pcm.mycard {
type hw
card 0
device 0
}
pcm.dshare {
type dmix
ipc_key 2048
slave{
pcm mycard
rate 44100
period_time 1024
buffer_size 8192
channels 2
}
bindings{
0 0
1 1
}
}
pcm.conf1 {
type plug
slave{
pcm "dshare"
channels 2
}
ttable.0.0 0.9
ttable.1.1 0.1
}
</code>
This does the volume control statically (one time) the application
(mplayer) starts using this device mentioned as 'conf1'. Now, i make
following changes to the asoundrc file to change the volume level on
the channels while the application is running.
<code>
ttable.0.0 0.1
ttable.1.1 0.9
</code>
But the changes do not reflect. I need to restart the application for
the changes to take effect.
Is there any way i can achieve this without having to restart the
application?
Kindly reply.
.
- Follow-Ups:
- Re: How to do Alsa configuration (asoundrc) on-the-run while an application is running?
- From: Dances With Crows
- Re: How to do Alsa configuration (asoundrc) on-the-run while an application is running?
- Prev by Date: Re: Cleaning linux console
- Next by Date: Re: Things Linux Can Do Without
- Previous by thread: Supply EDhardy Lacoste Men's T-shirts
- Next by thread: Re: How to do Alsa configuration (asoundrc) on-the-run while an application is running?
- Index(es):
Relevant Pages
|