SndPcm Class Reference

#include <SndPcm.hxx>

List of all members.

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]

Detailed Description

Definition at line 38 of file SndPcm.hxx.


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 79 of file SndPcm.cxx.

References chandle, and phandle.


Member Function Documentation

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

Definition at line 27 of file SndPcm.cxx.

References error_str.

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

void SndPcm::Poll ( void   ) 

Definition at line 213 of file SndPcm.cxx.

References chandle, and phandle.

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

Definition at line 73 of file SndPcm.hxx.

References chandle, and RecoverXRun().

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

Definition at line 57 of file SndPcm.hxx.

References chandle, latency, and RecoverXRun().

void SndPcm::RecoverXRun ( short *  data  ) 

Definition at line 168 of file SndPcm.cxx.

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

Referenced by ReadBuf(), and WriteBuf().

void SndPcm::Start ( void   ) 

Definition at line 94 of file SndPcm.cxx.

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

void SndPcm::Stop ( void   ) 

Definition at line 154 of file SndPcm.cxx.

References block, chandle, and phandle.

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

Definition at line 81 of file SndPcm.hxx.

References phandle, and RecoverXRun().

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

Definition at line 65 of file SndPcm.hxx.

References latency, phandle, and RecoverXRun().


Member Data Documentation

Definition at line 48 of file SndPcm.hxx.

Referenced by SndPcm(), and Stop().

snd_pcm_t * SndPcm::chandle

Definition at line 52 of file SndPcm.hxx.

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

Definition at line 43 of file SndPcm.hxx.

Referenced by SndPcm().

Definition at line 44 of file SndPcm.hxx.

Referenced by SndPcm().

char SndPcm::error_str[1024]

Definition at line 54 of file SndPcm.hxx.

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

snd_pcm_format_t SndPcm::format

Definition at line 41 of file SndPcm.hxx.

Referenced by SndPcm(), and Start().

Definition at line 45 of file SndPcm.hxx.

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

Definition at line 47 of file SndPcm.hxx.

Referenced by SndPcm().

Definition at line 46 of file SndPcm.hxx.

Referenced by RecoverXRun(), and SndPcm().

snd_pcm_t* SndPcm::phandle

Definition at line 52 of file SndPcm.hxx.

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

Definition at line 42 of file SndPcm.hxx.

Referenced by SndPcm().

Definition at line 49 of file SndPcm.hxx.

Referenced by SndPcm().

Definition at line 50 of file SndPcm.hxx.

Referenced by SndPcm().


The documentation for this class was generated from the following files:
Generated by  doxygen 1.6.3