Beispiel #1
0
// ToggleMute toggles the current mute status.
func (this *Player) ToggleMute() error {
	if this.ptr == nil {
		return syscall.EINVAL
	}
	C.libvlc_audio_toggle_mute(this.ptr)
	return checkError()
}
Beispiel #2
0
// ToggleMute toggles the current mute status.
func (this *Player) ToggleMute() error {
	if this.ptr == nil {
		return &VLCError{"Player is nil"}
	}
	C.libvlc_audio_toggle_mute(this.ptr)
	return checkError()
}