?api
The compiled Api to be used. If no API argument is specified and multiple API support has been compiled, the default order of use is JACK, ALSA, OSS (Linux systems) and ASIO, DS (Windows systems). An RtError (type = SYSTEM_ERROR) is printed to console if an error occurs during processing. An RtError (type = INVALID_USE) is printed to console if a stream is not open. A warning is issued if the stream is already stopped.
If a stream is not open, this function issues a warning and returns (no exception is thrown).
This function performs a system query of available devices each time it is called, thus supporting devices connected after instantiation. If a system error occurs during processing, a warning will be issued.
device
Any device integer between 0 and getDeviceCount() - 1.outputParameters
Specifies output stream parameters to use when opening a stream, including a device ID, number of channels, and starting channel number. For input-only streams, this argument should be null. The device ID is an index value between 0 and getDeviceCount() - 1.inputParameters
Specifies input stream parameters to use when opening a stream, including a device ID, number of channels, and starting channel number. For output-only streams, this argument should be null. The device ID is an index value between 0 and getDeviceCount() - 1.format
An RtAudioFormat specifying the desired sample data format.sampleRate
The desired sample rate (sample frames per second).bufferFrames
Indicating the desired internal buffer size in sample frames. The actual value used by the device is assigned to the property of the same name. A value of zero can be specified, in which case the lowest allowable value is determined.streamCallback
A client-defined function that will be invoked when input data is available and/or output data is needed.?userData
An optional pointer to data that can be accessed from the property of the same name.?options
An optional pointer to a StreamOptions containing various global stream options, including a Array of RtAudioStreamFlags and a suggested number of stream buffers that can be used to control stream latency. More buffers typically result in more robust performance, though at a cost of greater latency. If a value of zero is specified, a system-specific median value is chosen. If the RTAUDIO_MINIMIZE_LATENCY flag bit is set, the lowest allowable value is used. The actual value used is assigned to the property of the same name. The parameter is API dependent. An RtError (type = SYSTEM_ERROR) is printed to console if a stream cannot be opened with the specified parameters or an error occurs during processing. An RtError (type = INVALID_USE) is printed to console if any invalid device ID or channel number parameters are specified.
An RtError (type = SYSTEM_ERROR) is printed to console if an error occurs during processing. An RtError (type = INVALID_USE) is printed to console if a stream is not open. A warning is issued if the stream is already running.
An RtError (type = SYSTEM_ERROR) is printed to console if an error occurs during processing. An RtError (type = INVALID_USE) is printed to console if a stream is not open. A warning is issued if the stream is already stopped.