# Io Reference

Audio / PortAudio / AudioDevice

|  | The AudioDevice object can used to write audio data as if directly to the audio buffer.
|  | asyncRead Returns the audio read buffer. asyncWrite(aBuffer) Writes aBuffer to the audio output buffer and returns immediately. close Close the audio stream. error Returns an error string if an error has occured, Nil otherwise. isActive Returns self if the receiver is active, Nil otherwise. needsData Returns true if the receiver can read more data. open Open an audio output stream. openForReadingAndWriting Open audio output and input streams. streamTime Returns the audio stream time as a number. write(aSeq) Writes aSeq to the inputBuffer and yields until the receiver is ready for more input data. Returns self. writeBufferIsEmpty Returns the true if the audio buffer is empty, false otherwise.