Exemple #1
0
func GetAudioDriver(i int) (string, error) {
	name := C.SDL_GetAudioDriver(C.int(i))
	if name == nil {
		return "", getError()
	}

	return C.GoString(name), nil
}
Exemple #2
0
// GetAudioDriver (https://wiki.libsdl.org/SDL_GetAudioDriver)
func GetAudioDriver(index int) string {
	return string(C.GoString(C.SDL_GetAudioDriver(C.int(index))))
}
Exemple #3
0
func GetAudioDriver(index int) string {
	_index := (C.int)(index)
	return (string)(C.GoString(C.SDL_GetAudioDriver(_index)))
}