csl::PAIO Class Reference

#include <PAIO.h>

Inheritance diagram for csl::PAIO:

csl::IO List of all members.

Detailed Description

The PortAudio IO class


Public Member Functions

 PAIO ()
 PAIO (unsigned s_rate, unsigned b_size)
 Constructor given sample rate and block size.
 PAIO (int in_stream, int out_stream, unsigned in_chans, unsigned out_chans)
 Constructor given I/O stream IDs and # of channels.
 PAIO (unsigned s_rate, unsigned b_size, PaDeviceIndex in_device, PaDeviceIndex out_device, unsigned in_chans, unsigned out_chans)
 Most verbose -- specify everything.
 ~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
BuffergetInput () throw (CException)
 get the current input buffer
BuffergetInput (unsigned numFrames, unsigned numChannels) throw (CException)
 get the current input buffer

Public Attributes

PaStream * mStream
 the PortAudio stream we play out/get data from
samplemInputPointer
 the buffer for holding the sound card input (if open)
unsigned * mChannelMap

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.
PADeviceVector mDevices


Constructor & Destructor Documentation

PAIO::PAIO  ) 
 

Default constructor

PAIO::PAIO unsigned  s_rate,
unsigned  b_size
 

Constructor given sample rate and block size.

PAIO::PAIO int  in_stream,
int  out_stream,
unsigned  in_chans,
unsigned  out_chans
 

Constructor given I/O stream IDs and # of channels.

csl::PAIO::PAIO unsigned  s_rate,
unsigned  b_size,
PaDeviceIndex  in_device,
PaDeviceIndex  out_device,
unsigned  in_chans,
unsigned  out_chans
 

Most verbose -- specify everything.

PAIO::~PAIO  ) 
 

Destructor.


Member Function Documentation

void PAIO::open  )  throw (CException)
 

open the IO

void PAIO::start  )  throw (CException)
 

start the callbacks

void PAIO::stop  )  throw (CException)
 

stop the callbacks

void PAIO::close  )  throw (CException)
 

close the IO

void PAIO::test  )  throw (CException)
 

test the IO's graph

Buffer & PAIO::getInput  )  throw (CException)
 

get the current input buffer

Buffer & PAIO::getInput unsigned  numFrames,
unsigned  numChannels
throw (CException)
 

get the current input buffer

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

print the error message

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

Actually initialize PortAudio driver.


Member Data Documentation

PaStream* csl::PAIO::mStream
 

the PortAudio stream we play out/get data from

sample* csl::PAIO::mInputPointer
 

the buffer for holding the sound card input (if open)

unsigned* csl::PAIO::mChannelMap
 

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

PA IO stream parameters.

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

PaDeviceIndex csl::PAIO::mInDev [protected]
 

PaDeviceIndex csl::PAIO::mOutDev [protected]
 

IO device numbers.

PADeviceVector csl::PAIO::mDevices [protected]
 


The documentation for this class was generated from the following files:
Generated on Fri Apr 6 20:18:18 2007 for CSL by  doxygen 1.4.5-20051010