Exemplo n.º 1
0
func CloseAudio() {
	if !alreadyOpened {
		panic("SDL audio not opened")
	}

	PauseAudio(true)

	C.SDL_CloseAudio()
}
Exemplo n.º 2
0
func CloseAudio() {
	PauseAudio(true)

	mutex.Lock()
	{
		opened--
		switch {
		case opened == 0:
			userPaused = true
			sdlPaused = true
		case opened < 0:
			panic("SDL audio not opened")
		}
	}
	mutex.Unlock()

	C.callback_unblock()

	C.SDL_CloseAudio()
}
Exemplo n.º 3
0
// CloseAudio (https://wiki.libsdl.org/SDL_CloseAudio)
func CloseAudio() {
	C.SDL_CloseAudio()
}