Example #1
0
// AudioDelay returns the current audio delay.
func (this *Player) AudioDelay() (int64, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}
	return int64(C.libvlc_audio_get_delay(this.ptr)), checkError()
}
Example #2
0
// AudioDelay returns the current audio delay.
func (this *Player) AudioDelay() (int64, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}
	return int64(C.libvlc_audio_get_delay(this.ptr)), checkError()
}