Create an RtAudio instance.
Optional
api: RtAudioApiThe audio API to use. (Default will be automatically selected)
The volume of the output device. This should be a number between 0 and 1.
The number of elapsed seconds since the stream was started. This should be a time in seconds greater than or equal to 0.0.
Returns the list of available devices.
A public function for opening a stream with the specified parameters. Returns the actual frameSize used by the stream, useful if a frameSize of 0 is passed.
Specifies output stream parameters to use when opening a stream. For input-only streams, this argument should be null.
Specifies input stream parameters to use when opening a stream. For output-only streams, this argument should be null.
An RtAudio.Format specifying the desired sample data format.
The desired sample rate (sample frames per second).
The amount of samples per frame. Can be 0 for some APIs, in which case the lowest allowable value is determined; this is necessary for the ASIO & Jack APIs where the user can set an overriding global buffer size for their device.
A stream name (currently used only in Jack).
A callback that is called when a new input signal is available. Should be null for output-only streams.
A callback that is called when a frame is finished playing in the output device.
Optional
flags: RtAudioStreamFlagsA bit-mask of stream flags (RtAudio.StreamFlags).
Optional
errorCallback: null | ((type, msg) => void)A callback that is called when an error has occurred.
The actual frame-size used for stream. Useful if passed 0 as frameSize.
RtAudio provides a common API (Application Programming Interface) for realtime audio input/output across Linux (native ALSA, Jack, and OSS), Macintosh OS X (CoreAudio and Jack), and Windows (DirectSound, ASIO and WASAPI) operating systems.