Esempio n. 1
0
// SetAudioDeviceType sets the current audio device type.
// Device type describes something like character of output sound - stereo
// sound, 2.1, 5.1 etc
func (this *Player) SetAudioDeviceType(ad AudioDevice) error {
	if this.ptr == nil {
		return syscall.EINVAL
	}

	C.libvlc_audio_output_set_device_type(this.ptr, C.int(ad))
	return checkError()
}
Esempio n. 2
0
// SetAudioDeviceType sets the current audio device type.
// Device type describes something like character of output sound - stereo
// sound, 2.1, 5.1 etc
func (this *Player) SetAudioDeviceType(ad AudioDevice) error {
	if this.ptr == nil {
		return &VLCError{"Player is nil"}
	}

	C.libvlc_audio_output_set_device_type(this.ptr, C.int(ad))
	return checkError()
}