Example #1
0
func alGetString(v int) string {
	value := C.alGetString(C.ALenum(v))
	return C.GoString((*C.char)(value))
}
Example #2
0
File: al.go Project: nzlov/goal
/*
 * State retrieval
 */
func GetString(param ALenum) string {
	return goString(C.alGetString(C.ALenum(param)))
}
Example #3
0
func GetExtensions() (string, error) {
	val := C.alGetString(C.AL_EXTENSIONS)
	return C.GoString((*C.char)(val)), GetError()
}
Example #4
0
func GetRenderer() (string, error) {
	val := C.alGetString(C.AL_RENDERER)
	return C.GoString((*C.char)(val)), GetError()
}
Example #5
0
func GetVersion() (string, error) {
	val := C.alGetString(C.AL_VERSION)
	return C.GoString((*C.char)(val)), GetError()
}
Example #6
0
func GetVendor() (string, error) {
	val := C.alGetString(C.AL_VENDOR)
	return C.GoString((*C.char)(val)), GetError()
}
Example #7
0
File: al.go Project: Miaque/mojo
func getString(param int) string {
	v := C.alGetString(C.ALenum(param))
	return C.GoString((*C.char)(v))
}