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

	if C.libvlc_audio_set_delay(this.ptr, C.int64_t(delay)) != 0 {
		err = checkError()
	}

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

	if C.libvlc_audio_set_delay(this.ptr, C.int64_t(delay)) != 0 {
		err = checkError()
	}

	return
}