#include <Device.hxx>
A single physical device in the system may have multiple PortAudio Device representations using different HostApi 's though. A Device can be half-duplex or full-duplex. A half-duplex Device can be used to create a half-duplex Stream. A full-duplex Device can be used to create a full-duplex Stream. If supported by the HostApi, two half-duplex Devices can even be used to create a full-duplex Stream.
Note that Device objects are very light-weight and can be passed around by-value.
Public Member Functions | |
PaDeviceIndex | index () const |
const char * | name () const |
int | maxInputChannels () const |
int | maxOutputChannels () const |
PaTime | defaultLowInputLatency () const |
PaTime | defaultHighInputLatency () const |
PaTime | defaultLowOutputLatency () const |
PaTime | defaultHighOutputLatency () const |
double | defaultSampleRate () const |
bool | isInputOnlyDevice () const |
bool | isOutputOnlyDevice () const |
bool | isFullDuplexDevice () const |
bool | isSystemDefaultInputDevice () const |
bool | isSystemDefaultOutputDevice () const |
bool | isHostApiDefaultInputDevice () const |
bool | isHostApiDefaultOutputDevice () const |
bool | operator== (const Device &rhs) |
bool | operator!= (const Device &rhs) |
HostApi & | hostApi () |
const HostApi & | hostApi () const |
Private Member Functions | |
Device (PaDeviceIndex index) | |
~Device () | |
Device (const Device &) | |
Device & | operator= (const Device &) |
Private Attributes | |
PaDeviceIndex | index_ |
const PaDeviceInfo * | info_ |
Friends | |
class | System |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|