Page 1 of 1

how can i switch audio to mono using activex?

Posted: 24 Oct 2006 08:05
by BorPas
subj
i need the same result as menu command "Audio - Audio Channels - Left(Right)" or "Audio - Audio Device - Mono"
pleeeeeeaaaaasssssseeee help me!

Posted: 07 Nov 2006 21:14
by BorPas
^^^ up ^^^

Posted: 30 Nov 2006 06:32
by BorPas
^^^ up ^^^

Posted: 30 Nov 2006 08:44
by Yapadavaro
Hi BorPas

which OS ?
which vlc version ?
which Internet browser ?

Yap.

Posted: 30 Nov 2006 09:24
by Yapadavaro
Hi BorPas

which OS ?
which vlc version ?
which Internet browser ?

Yap.

Posted: 30 Nov 2006 15:14
by BorPas
well, it doesn't matter for ActiveX :-)
OS: WinXPsp2
Ver: VLC 0.8.5
Where: Delphi/C#

Posted: 30 Nov 2006 16:38
by Yapadavaro
While launching your content, try to add :mono in the array.

var _options = new Array(":mono");
vlc.addTarget(strToLoad, _options, 12, -666);

Yap.

Posted: 30 Nov 2006 18:39
by BorPas
While launching your content, try to add :mono in the array.

var _options = new Array(":mono");
vlc.addTarget(strToLoad, _options, 12, -666);

Yap.
and is it possible to vlc.setvariable something before launching instead?

Posted: 07 Dec 2006 13:38
by BorPas
While launching your content, try to add :mono in the array.

var _options = new Array(":mono");
vlc.addTarget(strToLoad, _options, 12, -666);

Yap.
no effect :-(

Posted: 07 Dec 2006 18:41
by Yapadavaro
Ok, try that :

Audio filter for stereo to mono conversion
--sout-mono-channel {0 (Left), 1 (Right), 2 (Left rear), 4 (Right rear), 8 (Center), 5 (Left front)}
Select channel to keep
This option silcences all other channels
except the selected channel. Choose one from
(0=left, 1=right 2=rear left, 3=rear right,
4=center, 5=left front)

So, if that works with the activex (not sure),

Code: Select all

var _options = new Array(":sout-mono-channel=0");
should keep the left channel.

Yap.

Posted: 12 Dec 2006 17:58
by Yapadavaro
Hi, have a look on this.

https://trac.videolan.org/vlc/changeset/18383

Yap.

Posted: 19 Dec 2006 22:48
by BorPas
var _options = new Array(":sout-mono-channel=0");
this works :-) but how to return stereo -1 didn't work
may be you know what "conf:..." variable can i set before playback to get the same result as

Code: Select all

VLC_var_Set(p_aout,'audio-device',1);
gives while playback
?