Esempio n. 1
0
// AudioTrack returns the current audio track.
func (this *Player) AudioTrack() (int, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}
	return int(C.libvlc_audio_get_track(this.ptr)), checkError()
}
Esempio n. 2
0
// AudioTrack returns the current audio track.
func (this *Player) AudioTrack() (int, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}
	return int(C.libvlc_audio_get_track(this.ptr)), checkError()
}