예제 #1
0
파일: player.go 프로젝트: jteeuwen/go-vlc
// IsMute returns whether or not mute is enabled.
func (this *Player) IsMute() (bool, error) {
	if this.ptr == nil {
		return false, syscall.EINVAL
	}
	return C.libvlc_audio_get_mute(this.ptr) != 0, checkError()
}
예제 #2
0
파일: player.go 프로젝트: henrym/go-vlc
// IsMute returns whether or not mute is enabled.
func (this *Player) IsMute() (bool, error) {
	if this.ptr == nil {
		return false, &VLCError{"Player is nil"}
	}
	return C.libvlc_audio_get_mute(this.ptr) != 0, checkError()
}