Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

portaudio::Device Class Reference

#include <Device.hxx>

List of all members.


Detailed Description

Class which represents a PortAudio device in the System.

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)
HostApihostApi ()
const HostApihostApi () const

Private Member Functions

 Device (PaDeviceIndex index)
 ~Device ()
 Device (const Device &)
Deviceoperator= (const Device &)

Private Attributes

PaDeviceIndex index_
const PaDeviceInfo * info_

Friends

class System


Constructor & Destructor Documentation

portaudio::Device::Device PaDeviceIndex  index  )  [explicit, private]
 

portaudio::Device::~Device  )  [private]
 

portaudio::Device::Device const Device  )  [private]
 


Member Function Documentation

PaDeviceIndex portaudio::Device::index  )  const
 

const char * portaudio::Device::name  )  const
 

int portaudio::Device::maxInputChannels  )  const
 

int portaudio::Device::maxOutputChannels  )  const
 

PaTime portaudio::Device::defaultLowInputLatency  )  const
 

PaTime portaudio::Device::defaultHighInputLatency  )  const
 

PaTime portaudio::Device::defaultLowOutputLatency  )  const
 

PaTime portaudio::Device::defaultHighOutputLatency  )  const
 

double portaudio::Device::defaultSampleRate  )  const
 

bool portaudio::Device::isInputOnlyDevice  )  const
 

bool portaudio::Device::isOutputOnlyDevice  )  const
 

bool portaudio::Device::isFullDuplexDevice  )  const
 

bool portaudio::Device::isSystemDefaultInputDevice  )  const
 

bool portaudio::Device::isSystemDefaultOutputDevice  )  const
 

bool portaudio::Device::isHostApiDefaultInputDevice  )  const
 

bool portaudio::Device::isHostApiDefaultOutputDevice  )  const
 

bool portaudio::Device::operator== const Device rhs  ) 
 

bool portaudio::Device::operator!= const Device rhs  ) 
 

HostApi & portaudio::Device::hostApi  ) 
 

const HostApi & portaudio::Device::hostApi  )  const
 

Device& portaudio::Device::operator= const Device  )  [private]
 


Friends And Related Function Documentation

friend class System [friend]
 


Member Data Documentation

PaDeviceIndex portaudio::Device::index_ [private]
 

const PaDeviceInfo* portaudio::Device::info_ [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Apr 2 20:22:48 2004 for PortAudioCpp by doxygen 1.3.6