#include <StreamParameters.hxx>
Collaboration diagram for portaudio::StreamParameters:
It contains parameters of input, output and shared parameters. Using the isSupported() method, the StreamParameters can be checked if opening a Stream using this StreamParameters would succeed or not. Accessors are provided to higher-level parameters aswell as the lower-level parameters which are mainly intended for internal use.
|
Default constructor; does nothing. |
|
Sets up the all parameters needed to open either a half-duplex or full-duplex Stream.
|
|
|
|
|
|
Sets the requested sample rate. If this sample rate isn't supported by the hardware, the Stream will fail to open. The real-life sample rate used might differ slightly due to imperfections in the sound card hardware; use Stream::sampleRate() to retreive the best known estimate for this value. |
|
Either the number of frames per buffer for a CallbackStream, or the preferred buffer granularity for a BlockingStream. See PortAudio documentation. |
|
Sets the specified flag or does nothing when the flag is already set. Doesn't `unset' any previously existing flags (use clearFlags() for that). |
|
Unsets the specified flag or does nothing if the flag isn't set. Doesn't affect any other flags. |
|
Clears or `unsets' all set flags. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns all currently set flags as a binary combined integer value (PaStreamFlags). Use isFlagSet() to avoid dealing with the bitmasks. |
|
Returns true if the specified flag is currently set or false if it isn't. |
|
|
|
|
|
|
|
|
|
|