Find the answer to your Linux question:
Results 1 to 2 of 2
Hi All, I am new to ALSA and have started with configuring the ALSA config file .asoundrc . I am able to control percentage amount of output to different channels, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Posts
    2

    How to adjust speaker balance/ volume using ALSA APIs


    Hi All,

    I am new to ALSA and have started with configuring the ALSA config file .asoundrc . I am able to control percentage amount of output to different channels, be it 2 or 4. Let me explain how I do it : I create the configuration nodes in the .asoundrc . Then in the ttable I specify the %age amount for each channel. This way my different applications can use different nodes(currently am using mplayer) and accordingly control the %age amount of output to different channels. The problem I am facing is to have this configured on the fly i.e. during playback I actually want to vary the sound output, like we have in most of the players. Something like the Volume Balancer. How can this be done. Should we write into the .asoundrc and then restart the player or should one make use of the ALSA APIs to re-configure it. Please advise as I couldnt really find any API which could perform the same task on the run.

    Thanks in Advance
    Varun
    varun12598@gmail.com

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi varun12598 !

    Duplicate threads/posts are not allowed here. Its against Forum Rules. Please continue here.
    Locked.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •