Ejemplo n.º 1
0
// SetAudioTrack sets the current audio track.
func (this *Player) SetAudioTrack(track int) (err error) {
	if this.ptr == nil {
		return syscall.EINVAL
	}

	if C.libvlc_audio_set_track(this.ptr, C.int(track)) != 0 {
		err = checkError()
	}

	return
}
Ejemplo n.º 2
0
// SetAudioTrack sets the current audio track.
func (this *Player) SetAudioTrack(track int) (err error) {
	if this.ptr == nil {
		return &VLCError{"Player is nil"}
	}

	if C.libvlc_audio_set_track(this.ptr, C.int(track)) != 0 {
		err = checkError()
	}

	return
}