Re: setting balance in MPlayer
Reimar Döffinger <[email protected]>
| Newsgroups | gmane.comp.video.mplayer.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jun 08, 2020 at 10:50:18AM -0700, stan wrote: > On Mon, 8 Jun 2020 14:03:16 +0000 > Darryl Burchfield <[email protected]> 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#). _______________________________________________ MPlayer-users mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users