Example #1
0
// AudioTrackCount returns the number of available audio tracks.
func (this *Player) AudioTrackCount() (int, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}
	return int(C.libvlc_audio_get_track_count(this.ptr)), checkError()
}
Example #2
0
// AudioTrackCount returns the number of available audio tracks.
func (this *Player) AudioTrackCount() (int, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}
	return int(C.libvlc_audio_get_track_count(this.ptr)), checkError()
}