csl::AUIO Class Reference

#include <CAIO.h>

Inheritance diagram for csl::AUIO:

csl::IO csl::CAIO

List of all members.

Public Member Functions

 AUIO ()
 AUIO (unsigned s_rate, unsigned b_size, int in_device, int out_device, unsigned in_chans, unsigned out_chans)
 ~AUIO ()
virtual void open () throw (CException)
 open/close start/stop methods
virtual void close () throw (CException)
 open/close start/stop methods
virtual void start () throw (CException)
virtual void stop () throw (CException)
void setAudioUnit (AudioUnit au)
virtual BuffergetInput () throw (CException)
 get the current input buffer
virtual BuffergetInput (unsigned numFrames, unsigned numChannels) throw (CException)
 get the current input buffer

Protected Member Functions

void handleError (OSStatus result) throw (CException)

Protected Attributes

AudioUnit mAudioUnit


Detailed Description

General-purpose AudioUnit IO class

Constructor & Destructor Documentation

AUIO::AUIO (  ) 

AUIO::AUIO ( unsigned  s_rate,
unsigned  b_size,
int  in_device,
int  out_device,
unsigned  in_chans,
unsigned  out_chans 
)

AUIO::~AUIO (  ) 


Member Function Documentation

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

open/close start/stop methods

Reimplemented from csl::IO.

Reimplemented in csl::CAIO.

References handleError(), mAudioUnit, csl::IO::mThisSec, csl::IO::mTimeSum, csl::IO::mTimeVals, and RenderCallback().

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

open/close start/stop methods

Reimplemented from csl::IO.

Reimplemented in csl::CAIO.

References handleError(), and mAudioUnit.

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

Reimplemented from csl::IO.

Reimplemented in csl::CAIO.

References csl::IO::mNumFramesPlayed.

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

Reimplemented from csl::IO.

Reimplemented in csl::CAIO.

void csl::AUIO::setAudioUnit ( AudioUnit  au  )  [inline]

References mAudioUnit.

Buffer & AUIO::getInput (  )  throw (CException) [virtual]

get the current input buffer

Reimplemented from csl::IO.

References csl::IO::mInputBuffer, csl::Buffer::mNumChannels, and csl::Buffer::mNumFrames.

Buffer & AUIO::getInput ( unsigned  numFrames,
unsigned  numChannels 
) throw (CException) [virtual]

get the current input buffer

Reimplemented from csl::IO.

References mNumInChannels.

void AUIO::handleError ( OSStatus  result  )  throw (CException) [protected]

Reimplemented in csl::CAIO.

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

Referenced by close(), csl::CAIO::handleError(), and open().


Member Data Documentation

AudioUnit csl::AUIO::mAudioUnit [protected]


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