// HostApi returns information for a requested HostApiType.
HostApi returns information for a requested HostApiType.
// HostApi returns information for a requested HostApiType .
func HostApi(apiType HostApiType) (*HostApiInfo, error) {
	hosts, err := HostApis()
	if err != nil {
		return nil, err
	}
	i := C.Pa_HostApiTypeIdToHostApiIndex(C.PaHostApiTypeId(apiType))
	if i < 0 {
		return nil, newError(C.PaError(i))
	}
	return hosts[i], nil
}
func HostApi ( apiType HostApiType ) ( * HostApiInfo , error ) { hosts , err := HostApis ( ) if err != nil { return nil , err } i := C . Pa_HostApiTypeIdToHostApiIndex ( C . PaHostApiTypeId ( apiType ) ) if i < 0 { return nil , newError ( C . PaError ( i ) ) } return hosts [ i ] , nil }
HostApi returns information for a requested HostApiType.
HostApi returns information for a requested HostApiType .