Example #1
0
func (id AudioDeviceID) PauseAudio(p bool) {
	var cp C.int
	if p {
		cp = 1
	}

	C.SDL_PauseAudioDevice(C.SDL_AudioDeviceID(id), cp)
}
Example #2
0
// PauseAudioDevice (https://wiki.libsdl.org/SDL_PauseAudioDevice)
func PauseAudioDevice(dev AudioDeviceID, pauseOn int) {
	C.SDL_PauseAudioDevice(dev.c(), C.int(pauseOn))
}
Example #3
0
// PauseAudioDevice (https://wiki.libsdl.org/SDL_PauseAudioDevice)
func PauseAudioDevice(dev AudioDeviceID, pauseOn bool) {
	C.SDL_PauseAudioDevice(dev.c(), C.int(Btoi(pauseOn)))
}
Example #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)
}
Example #5
0
func Disable() {
	C.SDL_PauseAudioDevice(dev, 1)
}
Example #6
0
func Enable() {
	C.SDL_PauseAudioDevice(dev, 0)
}
Example #7
0
func PauseAudioDevice(dev AudioDeviceID, pause_on bool) {
	C.SDL_PauseAudioDevice(C.SDL_AudioDeviceID(int(dev)), C.int(bool2int(pause_on)))
}