LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices

Closed Thread
 
Search this Thread
Old 04-08-2008, 01:29 AM   #1
varun12598
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
Varun
varun12598@gmail.com
 
Old 04-08-2008, 05:13 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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, 07:28 AM   #3
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 66
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 02:40 PM
Apache web server load balance, suggestions needed. cooljai Linux - Server 1 02-27-2008 11:10 AM
Volume Control: Intel 82801DB-ICH4 (Alsa mixer) won't save volume levels. cayspekko Linux - Newbie 2 01-31-2008 01:17 AM
ALSA API and C lib mykaitch Programming 1 02-24-2007 01:20 AM
how to adjust speaker balance/ volume on KDE sirpelidor Linux - Newbie 3 11-14-2003 12:11 AM


All times are GMT -5. The time now is 06:54 PM.

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