Exemple #1
0
// AudioChannel returns the current audio channel.
func (this *Player) AudioChannel() (int, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}
	return int(C.libvlc_audio_get_channel(this.ptr)), checkError()
}
Exemple #2
0
// AudioChannel returns the current audio channel.
func (this *Player) AudioChannel() (int, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}
	return int(C.libvlc_audio_get_channel(this.ptr)), checkError()
}