Page 1 of 1

libvlcAudioSetVolume and libvlcAudioToggleMute

Posted: 18 May 2011 13:03
by lanamelach
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?

Re: libvlcAudioSetVolume and libvlcAudioToggleMute

Posted: 18 May 2011 14:31
by Jean-Baptiste Kempf
Are you using libVLC directly?

Re: libvlcAudioSetVolume and libvlcAudioToggleMute

Posted: 18 May 2011 15:58
by lanamelach
i dynamically load functions from libvlc.dll and call them

Re: libvlcAudioSetVolume and libvlcAudioToggleMute

Posted: 18 May 2011 17:26
by Rémi Denis-Courmont
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.

Re: libvlcAudioSetVolume and libvlcAudioToggleMute

Posted: 20 May 2011 10:44
by lanamelach
ok, but why then libvlc_audio_get_mute returns muted state if i set volume to zero?

Re: libvlcAudioSetVolume and libvlcAudioToggleMute

Posted: 20 May 2011 14:37
by Rémi Denis-Courmont
That's a bug. It will be fixed in the next release.

Re: libvlcAudioSetVolume and libvlcAudioToggleMute

Posted: 07 Jun 2011 23:12
by rvs75
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 ...

Re: libvlcAudioSetVolume and libvlcAudioToggleMute

Posted: 08 Jun 2011 10:27
by Rémi Denis-Courmont
I meant VLC 1.2.

Re: libvlcAudioSetVolume and libvlcAudioToggleMute

Posted: 08 Jun 2011 12:04
by rvs75
My english is very bad, so i summarize in a tabular form.
Image

Can you confirm ?