Results 1 to 1 of 1
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-30-2008 #1Just Joined!
- Join Date
- May 2008
- Posts
- 1
How to do Alsa configuration (asoundrc) on-the-run while an application is
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-
This does the volume control statically (one time) the applicationCode: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 }
(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.
But the changes do not reflect. I need to restart the application for theCode:ttable.0.0 0.1 ttable.1.1 0.9
changes to take effect.
Is there any way i can achieve this without having to restart the
application?
Kindly reply.
Pls let know if there’s any way to have such a volume using the ALSA APIs from the application.


Reply With Quote
