How to do Alsa configuration (asoundrc) on-the-run while an application is running?
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 { change the volume level on the channels while the application is running. Code:
ttable.0.0 0.1 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. |
try using amixer
|
Thanks for your reply but..
We can use amixer for the purpose but how would i be able to control the volume of individual audio streams?
For example- I have three songs being played by three instances of mplayer at the same time and i want to listen to the three different songs on three different channels/speakers. Or song1 with 90% volume in speaker1 and 10% in speaker2. and song2 with 33% in speaker1 and 33% in speaker2 and rest in speaker3. and so on... Is it possible? Does alsa API's provide such a functionality? Please reply. Thanks. |
I think you just need to specify the channels you want to change when you use amixer.
Quote:
Alternatively, if you have more than one soundcard you can split the jobs among them and control them separately. |
All times are GMT -5. The time now is 01:18 AM. |