Пример #1
0
// AudioDeviceType return the current audio device type.
// Device type describes something like character of output sound - stereo
// sound, 2.1, 5.1 etc
func (this *Player) AudioDeviceType() (AudioDevice, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}

	return AudioDevice(C.libvlc_audio_output_get_device_type(this.ptr)), checkError()
}
Пример #2
0
// AudioDeviceType return the current audio device type.
// Device type describes something like character of output sound - stereo
// sound, 2.1, 5.1 etc
func (this *Player) AudioDeviceType() (AudioDevice, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}

	return AudioDevice(C.libvlc_audio_output_get_device_type(this.ptr)), checkError()
}