// AvailableToWrite returns the number of frames that
// can be written from the stream without waiting.
AvailableToWrite returns the number of frames that
can be written from the stream without waiting.
// AvailableToWrite returns the number of frames that // can be written from the stream without waiting .
func (s *Stream) AvailableToWrite() (int, error) {
	n := C.Pa_GetStreamWriteAvailable(s.paStream)
	if n < 0 {
		return 0, newError(C.PaError(n))
	}
	return int(n), nil
}
func ( s * Stream ) AvailableToWrite ( ) ( int , error ) { n := C . Pa_GetStreamWriteAvailable ( s . paStream ) if n < 0 { return 0 , newError ( C . PaError ( n ) ) } return int ( n ) , nil }
AvailableToWrite returns the number of frames that
can be written from the stream without waiting.
AvailableToWrite returns the number of frames that can be written from the stream without waiting .