[MPlayer-users] setting balance in MPlayer
dburchfield at additech.com
Tue Jun 9 18:40:19 EEST 2020
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");
_mPlayer = new MPlayer((long)Handle, MplayerBackends.SDL, @"/usr/bin/mplayer", false, new TimeSpan(), "-af channels=2:2:0:0:1:1");
From: MPlayer-users <mplayer-users-bounces at mplayerhq.hu> On Behalf Of stan
Sent: Monday, June 8, 2020 12:50 PM
To: mplayer-users at mplayerhq.hu
Subject: Re: [MPlayer-users] setting balance in MPlayer
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.
MPlayer-users mailing list
MPlayer-users at mplayerhq.hu
More information about the MPlayer-users