SndPcm Class Reference

#include <SndPcm.hxx>

List of all members.


Detailed Description

Definition at line 38 of file SndPcm.hxx.


Public Member Functions

void cat_error (const char *fmt,...)
void ReadBuf (short *data)
void WriteBuf (short *data)
void ReadBuf (short *data, int len)
void WriteBuf (short *data, int len)
 SndPcm (int irate, int ichannels_in, int ichannels_out, int ilatency, const char *pdevice, const char *cdevice)
 ~SndPcm ()
void Start (void)
void Stop (void)
void RecoverXRun (short *data)
void Poll (void)

Public Attributes

snd_pcm_format_t format
int rate
int channels_in
int channels_out
int latency
int latency_min
int latency_max
int block
int tick_time
int tick_time_ok
snd_pcm_t * phandle
snd_pcm_t * chandle
char error_str [1024]

Constructor & Destructor Documentation

SndPcm::SndPcm ( int  irate,
int  ichannels_in,
int  ichannels_out,
int  ilatency,
const char *  pdevice,
const char *  cdevice 
)

SndPcm::~SndPcm (  ) 

Definition at line 78 of file foo.cxx.

References chandle, and phandle.


Member Function Documentation

void SndPcm::cat_error ( const char *  fmt,
  ... 
)

Definition at line 37 of file foo.cxx.

References error_str.

Referenced by RecoverXRun(), SndPcm(), and Start().

void SndPcm::ReadBuf ( short *  data  )  [inline]

Definition at line 57 of file SndPcm.hxx.

References chandle, latency, and RecoverXRun().

void SndPcm::WriteBuf ( short *  data  )  [inline]

Definition at line 65 of file SndPcm.hxx.

References latency, phandle, and RecoverXRun().

void SndPcm::ReadBuf ( short *  data,
int  len 
) [inline]

Definition at line 73 of file SndPcm.hxx.

References chandle, and RecoverXRun().

void SndPcm::WriteBuf ( short *  data,
int  len 
) [inline]

Definition at line 81 of file SndPcm.hxx.

References phandle, and RecoverXRun().

void SndPcm::Start ( void   ) 

Definition at line 86 of file foo.cxx.

References cat_error(), chandle, error_str, format, latency, and phandle.

void SndPcm::Stop ( void   ) 

Definition at line 120 of file foo.cxx.

References block, chandle, and phandle.

void SndPcm::RecoverXRun ( short *  data  ) 

Definition at line 129 of file foo.cxx.

References cat_error(), chandle, error_str, latency, latency_min, and phandle.

Referenced by ReadBuf(), and WriteBuf().

void SndPcm::Poll ( void   ) 

Definition at line 159 of file foo.cxx.

References chandle.


Member Data Documentation

snd_pcm_format_t SndPcm::format

Definition at line 41 of file SndPcm.hxx.

Referenced by SndPcm(), and Start().

Definition at line 42 of file SndPcm.hxx.

Referenced by SndPcm().

Definition at line 43 of file SndPcm.hxx.

Referenced by SndPcm().

Definition at line 44 of file SndPcm.hxx.

Referenced by SndPcm().

Definition at line 45 of file SndPcm.hxx.

Referenced by ReadBuf(), RecoverXRun(), SndPcm(), Start(), and WriteBuf().

Definition at line 46 of file SndPcm.hxx.

Referenced by RecoverXRun(), and SndPcm().

Definition at line 47 of file SndPcm.hxx.

Referenced by SndPcm().

Definition at line 48 of file SndPcm.hxx.

Referenced by SndPcm(), and Stop().

Definition at line 49 of file SndPcm.hxx.

Referenced by SndPcm().

Definition at line 50 of file SndPcm.hxx.

Referenced by SndPcm().

snd_pcm_t* SndPcm::phandle

Definition at line 52 of file SndPcm.hxx.

Referenced by RecoverXRun(), SndPcm(), Start(), Stop(), WriteBuf(), and ~SndPcm().

snd_pcm_t * SndPcm::chandle

Definition at line 52 of file SndPcm.hxx.

Referenced by Poll(), ReadBuf(), RecoverXRun(), SndPcm(), Start(), Stop(), and ~SndPcm().

char SndPcm::error_str[1024]

Definition at line 54 of file SndPcm.hxx.

Referenced by cat_error(), RecoverXRun(), SndPcm(), and Start().


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

Generated on Tue Aug 12 22:33:46 2008 for CLAM by  doxygen 1.5.5