Re: setting balance in MPlayer

Darryl Burchfield <[email protected]>
Newsgroups gmane.comp.video.mplayer.user
Message-ID <BLAPR15MB3953319C56CC84A7A1DC442BCF820@BLAPR15MB3953.namprd15.prod.outlook.com>
I'm using the MPlayerControl and MPlayerControl-Winform NuGet Packages.  There is no balance or channel but I do see a consoleArguments in the constructor. Maybe create an instance of MPlayer control like this.

Left speaker only
_mPlayer = new MPlayer((long)Handle, MplayerBackends.SDL, @"/usr/bin/mplayer", false, new TimeSpan(), "-af channels=2:2:0:0:1:0");

Right speaker only
_mPlayer = new MPlayer((long)Handle, MplayerBackends.SDL, @"/usr/bin/mplayer", false, new TimeSpan(), "-af channels=2:2:0:1:1:1");

Both speakers
_mPlayer = new MPlayer((long)Handle, MplayerBackends.SDL, @"/usr/bin/mplayer", false, new TimeSpan(), "-af channels=2:2:0:0:1:1");
(



Darryl

-----Original Message-----
From: MPlayer-users <[email protected]> On Behalf Of stan
Sent: Monday, June 8, 2020 12:50 PM
To: [email protected]
Subject: Re: [MPlayer-users] setting balance in MPlayer

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.
_______________________________________________
MPlayer-users mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
_______________________________________________
MPlayer-users mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.