func WriteStream(stream *Stream, buffer unsafe.Pointer, frames uint) Error {
	cstream, _ := (unsafe.Pointer)(unsafe.Pointer(stream)), cgoAllocsUnknown
	cbuffer, _ := (unsafe.Pointer)(unsafe.Pointer(buffer)), cgoAllocsUnknown
	cframes, _ := (C.ulong)(frames), cgoAllocsUnknown
	__ret := C.Pa_WriteStream(cstream, cbuffer, cframes)
	__v := (Error)(__ret)
	return __v
}
WriteStream function as declared in portaudio/portaudio.h:1122
package portaudio
import "C"
import "unsafe"
func GetVersion() int32 {
	__ret := C.Pa_GetVersion()
	__v := (int32)(__ret)
	return __v
}
func GetVersionText() string {
	__ret := C.Pa_GetVersionText()
	__v := packPCharString(__ret)
	return __v
}
func GetErrorText(errorCode Error) string {
	cerrorCode, _ := (C.PaError)(errorCode), cgoAllocsUnknown
	__ret := C.Pa_GetErrorText(cerrorCode)
	__v := packPCharString(__ret)
	return __v
}
func Initialize() Error {
	__ret := C.Pa_Initialize()
	__v := (Error)(__ret)
	return __v
}
func Terminate() Error {
	__ret := C.Pa_Terminate()
	__v := (Error)(__ret)
	return __v
}
func GetHostApiCount() HostApiIndex {
	__ret := C.Pa_GetHostApiCount()
	__v := (HostApiIndex)(__ret)
	return __v
}
func GetDefaultHostApi() HostApiIndex {
	__ret := C.Pa_GetDefaultHostApi()
	__v := (HostApiIndex)(__ret)
	return __v
}
func GetHostApiInfo(hostApi HostApiIndex) *HostApiInfo {
	chostApi, _ := (C.PaHostApiIndex)(hostApi), cgoAllocsUnknown
	__ret := C.Pa_GetHostApiInfo(chostApi)
	__v := NewHostApiInfoRef(unsafe.Pointer(__ret))
	return __v
}
func HostApiTypeIdToHostApiIndex(kind HostApiTypeId) HostApiIndex {
	ckind, _ := (C.PaHostApiTypeId)(kind), cgoAllocsUnknown
	__ret := C.Pa_HostApiTypeIdToHostApiIndex(ckind)
	__v := (HostApiIndex)(__ret)
	return __v
}
func HostApiDeviceIndexToDeviceIndex(hostApi HostApiIndex, hostApiDeviceIndex int32) DeviceIndex {
	chostApi, _ := (C.PaHostApiIndex)(hostApi), cgoAllocsUnknown
	chostApiDeviceIndex, _ := (C.int)(hostApiDeviceIndex), cgoAllocsUnknown
	__ret := C.Pa_HostApiDeviceIndexToDeviceIndex(chostApi, chostApiDeviceIndex)
	__v := (DeviceIndex)(__ret)
	return __v
}
func GetLastHostErrorInfo() *HostErrorInfo {
	__ret := C.Pa_GetLastHostErrorInfo()
	__v := NewHostErrorInfoRef(unsafe.Pointer(__ret))
	return __v
}
func GetDeviceCount() DeviceIndex {
	__ret := C.Pa_GetDeviceCount()
	__v := (DeviceIndex)(__ret)
	return __v
}
func GetDefaultInputDevice() DeviceIndex {
	__ret := C.Pa_GetDefaultInputDevice()
	__v := (DeviceIndex)(__ret)
	return __v
}
func GetDefaultOutputDevice() DeviceIndex {
	__ret := C.Pa_GetDefaultOutputDevice()
	__v := (DeviceIndex)(__ret)
	return __v
}
func GetDeviceInfo(device DeviceIndex) *DeviceInfo {
	cdevice, _ := (C.PaDeviceIndex)(device), cgoAllocsUnknown
	__ret := C.Pa_GetDeviceInfo(cdevice)
	__v := NewDeviceInfoRef(unsafe.Pointer(__ret))
	return __v
}
func IsFormatSupported(inputParameters *StreamParameters, outputParameters *StreamParameters, sampleRate float64) Error {
	cinputParameters, _ := inputParameters.PassRef()
	coutputParameters, _ := outputParameters.PassRef()
	csampleRate, _ := (C.double)(sampleRate), cgoAllocsUnknown
	__ret := C.Pa_IsFormatSupported(cinputParameters, coutputParameters, csampleRate)
	__v := (Error)(__ret)
	return __v
}
func OpenStream(stream **Stream, inputParameters *StreamParameters, outputParameters *StreamParameters, sampleRate float64, framesPerBuffer uint, streamFlags StreamFlags, streamCallback StreamCallback, userData unsafe.Pointer) Error {
	cstream, _ := (*unsafe.Pointer)(unsafe.Pointer(stream)), cgoAllocsUnknown
	cinputParameters, _ := inputParameters.PassRef()
	coutputParameters, _ := outputParameters.PassRef()
	csampleRate, _ := (C.double)(sampleRate), cgoAllocsUnknown
	cframesPerBuffer, _ := (C.ulong)(framesPerBuffer), cgoAllocsUnknown
	cstreamFlags, _ := (C.PaStreamFlags)(streamFlags), cgoAllocsUnknown
	cstreamCallback, _ := streamCallback.PassRef()
	cuserData, _ := (unsafe.Pointer)(unsafe.Pointer(userData)), cgoAllocsUnknown
	__ret := C.Pa_OpenStream(cstream, cinputParameters, coutputParameters, csampleRate, cframesPerBuffer, cstreamFlags, cstreamCallback, cuserData)
	__v := (Error)(__ret)
	return __v
}
func OpenDefaultStream(stream **Stream, numInputChannels int32, numOutputChannels int32, sampleFormat SampleFormat, sampleRate float64, framesPerBuffer uint, streamCallback StreamCallback, userData unsafe.Pointer) Error {
	cstream, _ := (*unsafe.Pointer)(unsafe.Pointer(stream)), cgoAllocsUnknown
	cnumInputChannels, _ := (C.int)(numInputChannels), cgoAllocsUnknown
	cnumOutputChannels, _ := (C.int)(numOutputChannels), cgoAllocsUnknown
	csampleFormat, _ := (C.PaSampleFormat)(sampleFormat), cgoAllocsUnknown
	csampleRate, _ := (C.double)(sampleRate), cgoAllocsUnknown
	cframesPerBuffer, _ := (C.ulong)(framesPerBuffer), cgoAllocsUnknown
	cstreamCallback, _ := streamCallback.PassRef()
	cuserData, _ := (unsafe.Pointer)(unsafe.Pointer(userData)), cgoAllocsUnknown
	__ret := C.Pa_OpenDefaultStream(cstream, cnumInputChannels, cnumOutputChannels, csampleFormat, csampleRate, cframesPerBuffer, cstreamCallback, cuserData)
	__v := (Error)(__ret)
	return __v
}
func CloseStream(stream *Stream) Error {
	cstream, _ := (unsafe.Pointer)(unsafe.Pointer(stream)), cgoAllocsUnknown
	__ret := C.Pa_CloseStream(cstream)
	__v := (Error)(__ret)
	return __v
}
func SetStreamFinishedCallback(stream *Stream, streamFinishedCallback StreamFinishedCallback) Error {
	cstream, _ := (unsafe.Pointer)(unsafe.Pointer(stream)), cgoAllocsUnknown
	cstreamFinishedCallback, _ := streamFinishedCallback.PassRef()
	__ret := C.Pa_SetStreamFinishedCallback(cstream, cstreamFinishedCallback)
	__v := (Error)(__ret)
	return __v
}
func StartStream(stream *Stream) Error {
	cstream, _ := (unsafe.Pointer)(unsafe.Pointer(stream)), cgoAllocsUnknown
	__ret := C.Pa_StartStream(cstream)
	__v := (Error)(__ret)
	return __v
}
func StopStream(stream *Stream) Error {
	cstream, _ := (unsafe.Pointer)(unsafe.Pointer(stream)), cgoAllocsUnknown
	__ret := C.Pa_StopStream(cstream)
	__v := (Error)(__ret)
	return __v
}
func AbortStream(stream *Stream) Error {
	cstream, _ := (unsafe.Pointer)(unsafe.Pointer(stream)), cgoAllocsUnknown
	__ret := C.Pa_AbortStream(cstream)
	__v := (Error)(__ret)
	return __v
}
func IsStreamStopped(stream *Stream) Error {
	cstream, _ := (unsafe.Pointer)(unsafe.Pointer(stream)), cgoAllocsUnknown
	__ret := C.Pa_IsStreamStopped(cstream)
	__v := (Error)(__ret)
	return __v
}
func IsStreamActive(stream *Stream) Error {
	cstream, _ := (unsafe.Pointer)(unsafe.Pointer(stream)), cgoAllocsUnknown
	__ret := C.Pa_IsStreamActive(cstream)
	__v := (Error)(__ret)
	return __v
}
func GetStreamInfo(stream *Stream) *StreamInfo {
	cstream, _ := (unsafe.Pointer)(unsafe.Pointer(stream)), cgoAllocsUnknown
	__ret := C.Pa_GetStreamInfo(cstream)
	__v := NewStreamInfoRef(unsafe.Pointer(__ret))
	return __v
}
func GetStreamTime(stream *Stream) Time {
	cstream, _ := (unsafe.Pointer)(unsafe.Pointer(stream)), cgoAllocsUnknown
	__ret := C.Pa_GetStreamTime(cstream)
	__v := (Time)(__ret)
	return __v
}
func GetStreamCpuLoad(stream *Stream) float64 {
	cstream, _ := (unsafe.Pointer)(unsafe.Pointer(stream)), cgoAllocsUnknown
	__ret := C.Pa_GetStreamCpuLoad(cstream)
	__v := (float64)(__ret)
	return __v
}
func ReadStream(stream *Stream, buffer unsafe.Pointer, frames uint) Error {
	cstream, _ := (unsafe.Pointer)(unsafe.Pointer(stream)), cgoAllocsUnknown
	cbuffer, _ := (unsafe.Pointer)(unsafe.Pointer(buffer)), cgoAllocsUnknown
	cframes, _ := (C.ulong)(frames), cgoAllocsUnknown
	__ret := C.Pa_ReadStream(cstream, cbuffer, cframes)
	__v := (Error)(__ret)
	return __v
}