Page 1 of 1

Problems with volume changing

Posted: 07 Mar 2013 10:44
by hanky
Hi.
I'm using libVLC 2.0.5 (vlc-qt actually) to create a media player for my program.
I have some problems with sound output: there are notable lags on volume changing and I have no sound at all when I pause and then resume the playback.
I have these problems both on Linux and Windows, but Vlc Media Player itself is fine on both these platforms.
Is it correct that if I initilize the vlc instance in my program exactly with the same arguments as they are in Vlc Media player, these problems will disappear?
How can I get the arguments the vlc instance in Vlc Media Player is initialized with?

Thank you.

Re: Problems with volume changing

Posted: 07 Mar 2013 20:23
by Rémi Denis-Courmont
The only two flags passed by VLC 2.0.x to libvlc_new() are --no-ignore-config and --media-library. They are likely irrelevant in this case.

Re: Problems with volume changing

Posted: 11 Mar 2013 11:44
by hanky
The only two flags passed by VLC 2.0.x to libvlc_new() are --no-ignore-config and --media-library. They are likely irrelevant in this case.
If I use these flags and have no other errors in my program, I should get exactly the same behaviour as in Vlc Media Player, right?
I mean these functions will do the work:

Code: Select all

libvlc_new libvlc_media_player_new libvlc_media_player_set_media libvlc_media_player_play

Re: Problems with volume changing

Posted: 14 Mar 2013 17:34
by Rémi Denis-Courmont
Seriously, you can read the code in bin/vlc.c yourself...