#include <DirectionSpecificStreamParameters.hxx>
Public Member Functions | |
DirectionSpecificStreamParameters () | |
DirectionSpecificStreamParameters (const Device &device, int numChannels, SampleDataFormat format, bool interleaved, PaTime suggestedLatency, void *hostApiSpecificStreamInfo) | |
void | setDevice (const Device &device) |
void | setNumChannels (int numChannels) |
void | setSampleFormat (SampleDataFormat format, bool interleaved=true) |
void | setHostApiSpecificSampleFormat (PaSampleFormat format, bool interleaved=true) |
void | setSuggestedLatency (PaTime latency) |
void | setHostApiSpecificStreamInfo (void *streamInfo) |
PaStreamParameters * | paStreamParameters () |
const PaStreamParameters * | paStreamParameters () const |
Device & | device () const |
int | numChannels () const |
SampleDataFormat | sampleFormat () const |
bool | isSampleFormatInterleaved () const |
bool | isSampleFormatHostApiSpecific () const |
PaSampleFormat | hostApiSpecificSampleFormat () const |
PaTime | suggestedLatency () const |
void * | hostApiSpecificStreamInfo () const |
Static Public Member Functions | |
DirectionSpecificStreamParameters | null () |
Private Attributes | |
PaStreamParameters | paStreamParameters_ |
|
Default constructor -- all parameters will be uninitialized. |
|
Constructor which sets all required fields. |
|
Returns a `nil' DirectionSpecificStreamParameters object. This can be used to specify that one direction of a Stream is not required (i.e. when creating a half-duplex Stream). All fields of the null DirectionSpecificStreamParameters object are invalid except for the device and the number of channel, which are set to paNoDevice and 0 respectively. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns the (non host api-specific) sample format, without including the paNonInterleaved flag. If the sample format is host api-spefific, INVALID_FORMAT (0) will be returned. |
|
|
|
|
|
Returns the host api-specific sample format, without including any paCustomFormat or paNonInterleaved flags. Will return 0 if the sample format is not host api-specific. |
|
|
|
|
|
|