예제 #1
0
func LoadConfig(filename string) *Config {
	cs := C.CString(filename)
	defer C.free(unsafe.Pointer(cs))

	var c *Config

	c = (*Config)(C.al_load_config_file(cs))

	return c
}
예제 #2
0
func LoadConfigFile(filename string) *Config {
	f := C.CString(filename)
	defer C.free(unsafe.Pointer(f))
	return (*Config)(unsafe.Pointer(C.al_load_config_file(f)))
}