[MPlayer-users] setting balance in MPlayer

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue Jun 9 01:20:53 EEST 2020

On Mon, Jun 08, 2020 at 10:50:18AM -0700, stan wrote:
> On Mon, 8 Jun 2020 14:03:16 +0000
> Darryl Burchfield <dburchfield at additech.com> wrote:
> > I’m working on an embedded C# app in Linux that uses MPlayer to play
> > audio and videos.  I need to set MPlayer to play audio out the left
> > speaker only or right speaker only or both.  How do I set these from
> > a C# app?
> The man page indicates that ( and ) shift the balance left and right in
> the user interface.  Perhaps you can send them to mplayer from your app
> to accomplish what you want?  The trouble would be setting both
> channels after you have adjusted to only left or right.  You would have
> to know how many adjustments span the range so you could send half
> that many to have both channels again. 
> ( and )
> Adjust audio balance in favor of left/right channel.

>From DOCS/tech/slave.txt:
balance            float     -1      1       X   X   X    change audio balance
So set balance to -1 or 1.
Though it might be even simpler to just set the OS level
balance setting and just ignore the whole MPlayer side
(depends on how easy it is to change OS level mixer settings in C#).

More information about the MPlayer-users mailing list