csl::PAIO Class Reference

#include <PAIO.h>

Inheritance diagram for csl::PAIO:

csl::IO

List of all members.

Public Member Functions

 PAIO (unsigned s_rate=CSL_mFrameRate, unsigned b_size=CSL_mBlockSize, int in_device=-1, int out_device=-1, unsigned in_chans=0, unsigned out_chans=2)
 ~PAIO ()
 Destructor.
void open () throw (CException)
 open the IO
void start () throw (CException)
 start the callbacks
void stop () throw (CException)
 stop the callbacks
void close () throw (CException)
 close the IO
void test () throw (CException)
 test the IO's graph

Public Attributes

PaStream * mStream
 the PortAudio stream we play out/get data from

Protected Member Functions

void handleError (PaError result) throw (CException)
 print the error message
void initialize (unsigned sr, unsigned bs, int is, int os, unsigned ic, unsigned oc)
 Actually initialize PortAudio driver.

Protected Attributes

PaStreamParameters * mInputParameters
 PA IO stream parameters.
PaStreamParameters * mOutputParameters
PaDeviceIndex mInDev
PaDeviceIndex mOutDev
 IO device numbers.
IODeviceVector mDevices


Detailed Description

The PortAudio IO class

Constructor & Destructor Documentation

PAIO::PAIO ( unsigned  s_rate = CSL_mFrameRate,
unsigned  b_size = CSL_mBlockSize,
int  in_device = -1,
int  out_device = -1,
unsigned  in_chans = 0,
unsigned  out_chans = 2 
)

PAIO::~PAIO (  ) 


Member Function Documentation

void PAIO::open (  )  throw (CException) [virtual]

void PAIO::start ( void   )  throw (CException) [virtual]

start the callbacks

Reimplemented from csl::IO.

References handleError(), csl::kIOOpen, csl::kIORunning, csl::kLogError, csl::logMsg(), csl::IO::mStatus, and mStream.

Referenced by dumpTest(), and main().

void PAIO::stop ( void   )  throw (CException) [virtual]

stop the callbacks

Reimplemented from csl::IO.

References handleError(), csl::kIOOpen, csl::kIORunning, csl::kLogError, csl::logMsg(), csl::IO::mStatus, and mStream.

Referenced by dumpTest(), main(), and ~PAIO().

void PAIO::close (  )  throw (CException) [virtual]

void PAIO::test (  )  throw (CException) [virtual]

void PAIO::handleError ( PaError  result  )  throw (CException) [protected]

print the error message

References csl::kLogError, and csl::logMsg().

Referenced by close(), start(), and stop().

void PAIO::initialize ( unsigned  sr,
unsigned  bs,
int  is,
int  os,
unsigned  ic,
unsigned  oc 
) [protected, virtual]


Member Data Documentation

PaStream* csl::PAIO::mStream

the PortAudio stream we play out/get data from

Referenced by close(), open(), start(), and stop().

PaStreamParameters* csl::PAIO::mInputParameters [protected]

PA IO stream parameters.

Referenced by initialize(), open(), and ~PAIO().

PaStreamParameters* csl::PAIO::mOutputParameters [protected]

Referenced by initialize(), open(), and ~PAIO().

PaDeviceIndex csl::PAIO::mInDev [protected]

Referenced by initialize().

PaDeviceIndex csl::PAIO::mOutDev [protected]

IO device numbers.

Referenced by initialize().

Referenced by initialize().


The documentation for this class was generated from the following files:

Generated on Thu Sep 17 23:14:17 2009 for CSL by  doxygen 1.5.8