Esempio n. 1
0
func GetAudioDeviceName(i int, ic bool) (string, error) {
	var cic C.int
	if ic {
		cic = 1
	}

	name := C.SDL_GetAudioDeviceName(C.int(i), cic)
	if name == nil {
		return "", getError()
	}

	return C.GoString(name), nil
}
Esempio n. 2
0
// GetAudioDeviceName (https://wiki.libsdl.org/SDL_GetAudioDeviceName)
func GetAudioDeviceName(index, isCapture int) string {
	return string(C.GoString(C.SDL_GetAudioDeviceName(C.int(index), C.int(isCapture))))
}
Esempio n. 3
0
// GetAudioDeviceName (https://wiki.libsdl.org/SDL_GetAudioDeviceName)
func GetAudioDeviceName(index int, isCapture bool) string {
	return string(C.GoString(C.SDL_GetAudioDeviceName(C.int(index), C.int(Btoi(isCapture)))))
}
Esempio n. 4
0
func GetAudioDeviceName(index, iscapture int) string {
	_index := (C.int)(index)
	_iscapture := (C.int)(iscapture)
	return (string)(C.GoString(C.SDL_GetAudioDeviceName(_index, _iscapture)))
}
Esempio n. 5
0
func GetAudioDeviceName(index int, iscapture bool) string {
	return C.GoString(C.SDL_GetAudioDeviceName(C.int(index), C.int(bool2int(iscapture))))
}