// SetMute sets mute mode to the specified value. func (this *Player) SetMute(toggle bool) error { if this.ptr == nil { return syscall.EINVAL } if toggle { C.libvlc_audio_set_mute(this.ptr, 1) } else { C.libvlc_audio_set_mute(this.ptr, 0) } return checkError() }
// SetMute sets mute mode to the specified value. func (this *Player) SetMute(toggle bool) error { if this.ptr == nil { return &VLCError{"Player is nil"} } if toggle { C.libvlc_audio_set_mute(this.ptr, 1) } else { C.libvlc_audio_set_mute(this.ptr, 0) } return checkError() }