setting gain value has no effect
Posted: 13 Feb 2017 09:47
Helloļ¼
I am trying to set gain value by the "libvlc_media_add_option" api, unfortunately there is no effect.
But the comand line works, "cvlc --audio-filter=gain file:///media/psf/Home/Documents/personal/music/thingsyoudtknow.mp3 --gain=0"
Did I miss something?
besides, my vlc version is "VLC media player 2.1.6 Rincewind".
Thanks in advance.
I am trying to set gain value by the "libvlc_media_add_option" api, unfortunately there is no effect.
But the comand line works, "cvlc --audio-filter=gain file:///media/psf/Home/Documents/personal/music/thingsyoudtknow.mp3 --gain=0"
Did I miss something?
Code: Select all
inst = libvlc_new(0, NULL);
m = libvlc_media_new_location (inst, "file:///media/psf/Home/Documents/personal/music/test/thingsyoudontknow.mp3");
libvlc_media_add_option(m, "audio-filter=gain");
libvlc_media_add_option(m, "gain=0");
mp = libvlc_media_player_new_from_media(m);
libvlc_media_player_play(mp);
Thanks in advance.