libvlc_audio_set_volume error

This forum is about all development around libVLC.
spider58
Blank Cone
Blank Cone
Posts: 91
Joined: 28 Jun 2011 14:39

libvlc_audio_set_volume error

Postby spider58 » 29 Aug 2012 09:06

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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: libvlc_audio_set_volume error

Postby Jean-Baptiste Kempf » 29 Aug 2012 12:25

Do you see volume changes in logs?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

wetneb
Blank Cone
Blank Cone
Posts: 16
Joined: 07 Apr 2010 09:35

Re: libvlc_audio_set_volume error

Postby wetneb » 30 Aug 2012 19:04

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 ?

Rémi Denis-Courmont
Developer
Developer
Posts: 15323
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: libvlc_audio_set_volume error

Postby Rémi Denis-Courmont » 30 Aug 2012 22:14

Changing the volume does not normally print any message.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

spider58
Blank Cone
Blank Cone
Posts: 91
Joined: 28 Jun 2011 14:39

Re: libvlc_audio_set_volume error

Postby spider58 » 31 Aug 2012 12:58

Do you see volume changes in logs?
unfortunately no.

wetneb
Blank Cone
Blank Cone
Posts: 16
Joined: 07 Apr 2010 09:35

Re: libvlc_audio_set_volume error

Postby wetneb » 31 Aug 2012 19:17

spider58, would you be able to write a small code which reproduces the bug ?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 8 guests