libvlcAudioSetVolume and libvlcAudioToggleMute

This forum is about all development around libVLC.
lanamelach
Blank Cone
Blank Cone
Posts: 31
Joined: 18 Nov 2010 13:22

libvlcAudioSetVolume and libvlcAudioToggleMute

Postby lanamelach » 18 May 2011 13:03

Hi there, I have a problem of using libvlcAudioSetVolume and libvlcAudioToggleMute functions, namely libvlcAudioToggleMute doesn't work correctly in cases when mute state was changed via libvlcAudioSetVolume. It seems like it uses the previous mute state when toggling. Should I report the bug or is there some solution for that?
No milk today

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: libvlcAudioSetVolume and libvlcAudioToggleMute

Postby Jean-Baptiste Kempf » 18 May 2011 14:31

Are you using libVLC directly?
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.

lanamelach
Blank Cone
Blank Cone
Posts: 31
Joined: 18 Nov 2010 13:22

Re: libvlcAudioSetVolume and libvlcAudioToggleMute

Postby lanamelach » 18 May 2011 15:58

i dynamically load functions from libvlc.dll and call them
No milk today

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

Re: libvlcAudioSetVolume and libvlcAudioToggleMute

Postby Rémi Denis-Courmont » 18 May 2011 17:26

You cannot set the "mute" state via libvlc_audio_set_volume() in the first place.

Of course, it you set volume to zero and mute (or vice versa), and then unmute, the volume will be zero. That is intended behaviour.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

lanamelach
Blank Cone
Blank Cone
Posts: 31
Joined: 18 Nov 2010 13:22

Re: libvlcAudioSetVolume and libvlcAudioToggleMute

Postby lanamelach » 20 May 2011 10:44

ok, but why then libvlc_audio_get_mute returns muted state if i set volume to zero?
No milk today

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

Re: libvlcAudioSetVolume and libvlcAudioToggleMute

Postby Rémi Denis-Courmont » 20 May 2011 14:37

That's a bug. It will be fixed in the next release.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

rvs75
Blank Cone
Blank Cone
Posts: 38
Joined: 01 Jul 2010 11:48

Re: libvlcAudioSetVolume and libvlcAudioToggleMute

Postby rvs75 » 07 Jun 2011 23:12

With VLC 1.1.10, I can't unmute. After I use libvlc_Audio_ToggleMute to unmute, libvlc_audio_get_volume returns zero, libvlc_audio_get_mute returns false.
I haven't this problem with VLC 1.1.7 (not tested with 1.1.8 and 1.1.9).
I can store the volume in my application before to mute and restore it after to unmute, but I think it' s a bug ...

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

Re: libvlcAudioSetVolume and libvlcAudioToggleMute

Postby Rémi Denis-Courmont » 08 Jun 2011 10:27

I meant VLC 1.2.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

rvs75
Blank Cone
Blank Cone
Posts: 38
Joined: 01 Jul 2010 11:48

Re: libvlcAudioSetVolume and libvlcAudioToggleMute

Postby rvs75 » 08 Jun 2011 12:04

My english is very bad, so i summarize in a tabular form.
Image

Can you confirm ?


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 3 guests