Beispiel #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
}
Beispiel #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))))
}
Beispiel #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)))))
}
Beispiel #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)))
}
Beispiel #5
0
func GetAudioDeviceName(index int, iscapture bool) string {
	return C.GoString(C.SDL_GetAudioDeviceName(C.int(index), C.int(bool2int(iscapture))))
}