Пример #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
}
Пример #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
}