Exemplo n.º 1
0
func (id AudioDeviceID) PauseAudio(p bool) {
	var cp C.int
	if p {
		cp = 1
	}

	C.SDL_PauseAudioDevice(C.SDL_AudioDeviceID(id), cp)
}
Exemplo n.º 2
0
// PauseAudioDevice (https://wiki.libsdl.org/SDL_PauseAudioDevice)
func PauseAudioDevice(dev AudioDeviceID, pauseOn int) {
	C.SDL_PauseAudioDevice(dev.c(), C.int(pauseOn))
}
Exemplo n.º 3
0
// PauseAudioDevice (https://wiki.libsdl.org/SDL_PauseAudioDevice)
func PauseAudioDevice(dev AudioDeviceID, pauseOn bool) {
	C.SDL_PauseAudioDevice(dev.c(), C.int(Btoi(pauseOn)))
}
Exemplo n.º 4
0
func PauseAudioDevice(dev AudioDeviceID, pause_on int) {
	_dev := (C.SDL_AudioDeviceID)(dev)
	_pause_on := (C.int)(pause_on)
	C.SDL_PauseAudioDevice(_dev, _pause_on)
}
Exemplo n.º 5
0
func Disable() {
	C.SDL_PauseAudioDevice(dev, 1)
}
Exemplo n.º 6
0
func Enable() {
	C.SDL_PauseAudioDevice(dev, 0)
}
Exemplo n.º 7
0
func PauseAudioDevice(dev AudioDeviceID, pause_on bool) {
	C.SDL_PauseAudioDevice(C.SDL_AudioDeviceID(int(dev)), C.int(bool2int(pause_on)))
}