示例#1
0
文件: player.go 项目: jteeuwen/go-vlc
// SetAudioChannel sets the current audio channel.
func (this *Player) SetAudioChannel(channel int) (err error) {
	if this.ptr == nil {
		return syscall.EINVAL
	}

	if C.libvlc_audio_set_channel(this.ptr, C.int(channel)) != 0 {
		err = checkError()
	}

	return
}
示例#2
0
文件: player.go 项目: henrym/go-vlc
// SetAudioChannel sets the current audio channel.
func (this *Player) SetAudioChannel(channel int) (err error) {
	if this.ptr == nil {
		return &VLCError{"Player is nil"}
	}

	if C.libvlc_audio_set_channel(this.ptr, C.int(channel)) != 0 {
		err = checkError()
	}

	return
}