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-
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
}
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.
ttable.0.0 0.1
ttable.1.1 0.9
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.