Page 1 of 1
libvlc_audio_set_volume error
Posted: 29 Aug 2012 09:06
by spider58
Hello.
Today i've downloaded VLC 2.0.3 and copied libvlc.dll, libvlccore.dll and plugins directory instead of my old files.
and run my program. Shows UDP streaming good. But libvlc_audio_set_volume doesn't working. Im hearing No sound and no sound changes.
Is there any change for libvlc_audio_set_volume usage?
normally was libvlc_audio_set_volume(Handle, volume).
Inadvance thanks.
Re: libvlc_audio_set_volume error
Posted: 29 Aug 2012 12:25
by Jean-Baptiste Kempf
Do you see volume changes in logs?
Re: libvlc_audio_set_volume error
Posted: 30 Aug 2012 19:04
by wetneb
I have the same problem in my project.
But the following code works as expected :
Code: Select all
#include <iostream>
#include <vlc/vlc.h>
#include <cstdlib>
#include <unistd.h>
int main(int argc, char **argv)
{
libvlc_instance_t *vlcInstance;
libvlc_media_player_t *mp;
libvlc_media_t *media;
vlcInstance = libvlc_new (argc, argv);
mp = libvlc_media_player_new(vlcInstance);
media = libvlc_media_new_path(vlcInstance, "sound.ogg");
libvlc_media_player_set_media(mp, media);
libvlc_media_player_play (mp);
libvlc_audio_set_volume(mp, 100);
sleep(3);
libvlc_audio_set_volume(mp, 0);
sleep(3);
libvlc_audio_set_volume(mp, 100);
sleep(3);
libvlc_media_player_release(mp);
libvlc_release(vlcInstance);
return 0;
}
With this program, the volume changes as expected but I see no message in the log (with -vvv). How can we see them ?
Re: libvlc_audio_set_volume error
Posted: 30 Aug 2012 22:14
by RĂ©mi Denis-Courmont
Changing the volume does not normally print any message.
Re: libvlc_audio_set_volume error
Posted: 31 Aug 2012 12:58
by spider58
Do you see volume changes in logs?
unfortunately no.
Re: libvlc_audio_set_volume error
Posted: 31 Aug 2012 19:17
by wetneb
spider58, would you be able to write a small code which reproduces the bug ?