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.