Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


Closed Thread
  Search this Thread
Old 04-08-2008, 12:29 AM   #1
LQ Newbie
Registered: Apr 2008
Posts: 4

Rep: Reputation: 0
Unhappy ALSA API :: Volume Balance needed

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
Old 04-08-2008, 04:13 AM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
Old 04-08-2008, 06:28 AM   #3
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Continue this post here.

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming with ALSA API muskvar Programming 9 12-15-2009 01:40 PM
Apache web server load balance, suggestions needed. cooljai Linux - Server 1 02-27-2008 10:10 AM
Volume Control: Intel 82801DB-ICH4 (Alsa mixer) won't save volume levels. cayspekko Linux - Newbie 2 01-31-2008 12:17 AM
ALSA API and C lib mykaitch Programming 1 02-24-2007 12:20 AM
how to adjust speaker balance/ volume on KDE sirpelidor Linux - Newbie 3 11-13-2003 11:11 PM > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 12:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration