Example #1
0
File: alc.go Project: nzlov/goal
/*
 * Query functions
 */
func (device *Device) GetString(param ALCenum) string {
	return goString(C.alcGetString((*C.ALCdevice)(device), C.ALCenum(param)))
}
Example #2
0
func (dev Device) DeviceSpecifier() (string, error) {
	return C.GoString((*C.char)(C.alcGetString(dev.device, C.ALC_DEVICE_SPECIFIER))), GetError()
}
Example #3
0
func (dev Device) Extensions() (string, error) {
	return C.GoString((*C.char)(C.alcGetString(dev.device, C.ALC_EXTENSIONS))), GetError()
}
Example #4
0
func DefaultDeviceName() (string, error) {
	return C.GoString((*C.char)(C.alcGetString(nil, C.ALC_DEFAULT_DEVICE_SPECIFIER))), GetError()
}