Пример #1
0
// DefaultHostApi returns information of the default HostApi available on the system.
//
// The default host API will be the lowest common denominator host API
// on the current platform and is unlikely to provide the best performance.
func DefaultHostApi() (*HostApiInfo, error) {
	hosts, err := HostApis()
	if err != nil {
		return nil, err
	}
	i := C.Pa_GetDefaultHostApi()
	if i < 0 {
		return nil, newError(C.PaError(i))
	}
	return hosts[i], nil
}
Пример #2
0
// GetDefaultHostApi function as declared in portaudio/portaudio.h:210
func GetDefaultHostApi() HostApiIndex {
	__ret := C.Pa_GetDefaultHostApi()
	__v := (HostApiIndex)(__ret)
	return __v
}