#include <RtAudio.h>
|
virtual bool | probeDeviceOpen (unsigned int device, StreamMode mode, unsigned int channels, unsigned int firstChannel, unsigned int sampleRate, RtAudioFormat format, unsigned int *bufferSize, RtAudio::StreamOptions *options) |
|
void | tickStreamTime (void) |
| A protected function used to increment the stream time. More...
|
|
void | clearStreamInfo () |
| Protected common method to clear an RtApiStream structure. More...
|
|
void | verifyStream (void) |
|
void | error (RtError::Type type) |
| Protected common error method to allow global control over error handling. More...
|
|
void | convertBuffer (char *outBuffer, char *inBuffer, ConvertInfo &info) |
|
void | byteSwapBuffer (char *buffer, unsigned int samples, RtAudioFormat format) |
| Protected common method used to perform byte-swapping on buffers. More...
|
|
unsigned int | formatBytes (RtAudioFormat format) |
| Protected common method that returns the number of bytes for a given format. More...
|
|
void | setConvertInfo (StreamMode mode, unsigned int firstChannel) |
| Protected common method that sets up the parameters for buffer conversion. More...
|
|
◆ Float32
◆ Float64
◆ Int16
◆ Int32
◆ anonymous enum
Enumerator |
---|
FAILURE | |
SUCCESS | |
◆ StreamMode
Enumerator |
---|
OUTPUT | |
INPUT | |
DUPLEX | |
UNINITIALIZED | |
◆ StreamState
Enumerator |
---|
STREAM_STOPPED | |
STREAM_STOPPING | |
STREAM_RUNNING | |
STREAM_CLOSED | |
◆ RtApi()
◆ ~RtApi()
◆ abortStream()
virtual void RtApi::abortStream |
( |
void |
| ) |
|
|
pure virtual |
◆ byteSwapBuffer()
void RtApi::byteSwapBuffer |
( |
char * |
buffer, |
|
|
unsigned int |
samples, |
|
|
RtAudioFormat |
format |
|
) |
| |
|
protected |
Protected common method used to perform byte-swapping on buffers.
◆ clearStreamInfo()
void RtApi::clearStreamInfo |
( |
| ) |
|
|
protected |
Protected common method to clear an RtApiStream structure.
◆ closeStream()
void RtApi::closeStream |
( |
void |
| ) |
|
|
virtual |
◆ convertBuffer()
void RtApi::convertBuffer |
( |
char * |
outBuffer, |
|
|
char * |
inBuffer, |
|
|
ConvertInfo & |
info |
|
) |
| |
|
protected |
Protected method used to perform format, channel number, and/or interleaving conversions between the user and device buffers.
◆ error()
Protected common error method to allow global control over error handling.
◆ formatBytes()
Protected common method that returns the number of bytes for a given format.
◆ getCurrentApi()
◆ getDefaultInputDevice()
unsigned int RtApi::getDefaultInputDevice |
( |
void |
| ) |
|
|
virtual |
◆ getDefaultOutputDevice()
unsigned int RtApi::getDefaultOutputDevice |
( |
void |
| ) |
|
|
virtual |
◆ getDeviceCount()
virtual unsigned int RtApi::getDeviceCount |
( |
void |
| ) |
|
|
pure virtual |
◆ getDeviceInfo()
◆ getStreamLatency()
long RtApi::getStreamLatency |
( |
void |
| ) |
|
◆ getStreamSampleRate()
unsigned int RtApi::getStreamSampleRate |
( |
void |
| ) |
|
◆ getStreamTime()
double RtApi::getStreamTime |
( |
void |
| ) |
|
|
virtual |
◆ isStreamOpen()
bool RtApi::isStreamOpen |
( |
void |
| ) |
const |
|
inline |
◆ isStreamRunning()
bool RtApi::isStreamRunning |
( |
void |
| ) |
const |
|
inline |
◆ openStream()
◆ probeDeviceOpen()
bool RtApi::probeDeviceOpen |
( |
unsigned int |
device, |
|
|
StreamMode |
mode, |
|
|
unsigned int |
channels, |
|
|
unsigned int |
firstChannel, |
|
|
unsigned int |
sampleRate, |
|
|
RtAudioFormat |
format, |
|
|
unsigned int * |
bufferSize, |
|
|
RtAudio::StreamOptions * |
options |
|
) |
| |
|
protectedvirtual |
Protected, api-specific method that attempts to open a device with the given parameters. This function MUST be implemented by all subclasses. If an error is encountered during the probe, a "warning" message is reported and FAILURE is returned. A successful probe is indicated by a return value of SUCCESS.
◆ setConvertInfo()
void RtApi::setConvertInfo |
( |
StreamMode |
mode, |
|
|
unsigned int |
firstChannel |
|
) |
| |
|
protected |
Protected common method that sets up the parameters for buffer conversion.
◆ showWarnings()
void RtApi::showWarnings |
( |
bool |
value | ) |
|
|
inline |
◆ startStream()
virtual void RtApi::startStream |
( |
void |
| ) |
|
|
pure virtual |
◆ stopStream()
virtual void RtApi::stopStream |
( |
void |
| ) |
|
|
pure virtual |
◆ tickStreamTime()
void RtApi::tickStreamTime |
( |
void |
| ) |
|
|
protected |
A protected function used to increment the stream time.
◆ verifyStream()
void RtApi::verifyStream |
( |
void |
| ) |
|
|
protected |
Protected common method that throws an RtError (type = INVALID_USE) if a stream is not open.
◆ errorStream_
std::ostringstream RtApi::errorStream_ |
|
protected |
◆ errorText_
std::string RtApi::errorText_ |
|
protected |
◆ MAX_SAMPLE_RATES
const unsigned int RtApi::MAX_SAMPLE_RATES = 14 |
|
staticprotected |
◆ SAMPLE_RATES
const unsigned int RtApi::SAMPLE_RATES |
|
staticprotected |
Initial value:= {
4000, 5512, 8000, 9600, 11025, 16000, 22050,
32000, 44100, 48000, 88200, 96000, 176400, 192000
}
◆ showWarnings_
bool RtApi::showWarnings_ |
|
protected |
◆ stream_
The documentation for this class was generated from the following files: