func (p *Player) GetVolume() (int, error) { if p.player == nil { return 0, errors.New("A player must first be initialized") } return int(C.libvlc_audio_get_volume(p.player)), getError() }
// Volume returns the current audio level. func (this *Player) Volume() (int, error) { if this.ptr == nil { return 0, syscall.EINVAL } return int(C.libvlc_audio_get_volume(this.ptr)), checkError() }
// Volume returns the current audio level. func (this *Player) Volume() (int, error) { if this.ptr == nil { return 0, &VLCError{"Player is nil"} } return int(C.libvlc_audio_get_volume(this.ptr)), checkError() }