Logo Search packages:      
Sourcecode: darkice version File versions

AlsaDspSource Class Reference

#include <AlsaDspSource.h>

Inheritance diagram for AlsaDspSource:

AudioSource Reporter Source Reporter Referable

List of all members.


Detailed Description

An audio input based on the ALSA sound system

Author:
Author
darkeye
Version:
Revision
1.1

Definition at line 70 of file AlsaDspSource.h.


Public Member Functions

 AlsaDspSource (const AlsaDspSource &ds) throw ( Exception )
 AlsaDspSource (const char *name, int sampleRate=44100, int bitsPerSample=16, int channel=2) throw ( Exception )
virtual bool canRead (unsigned int sec, unsigned int usec) throw ( Exception )
virtual void close (void) throw ( Exception )
unsigned int decreaseReferenceCount (void) throw ( Exception )
unsigned int getBitsPerSample (void) const throw ()
virtual unsigned int getBufferTime (void) const
unsigned int getChannel (void) const throw ()
unsigned int getReferenceCount (void) const throw ()
unsigned int getSampleRate (void) const throw ()
unsigned int increaseReferenceCount (void) throw ( Exception )
virtual bool isBigEndian (void) const throw ()
virtual bool isOpen (void) const throw ()
virtual bool open (void) throw ( Exception )
virtual AlsaDspSourceoperator= (const AlsaDspSource &ds) throw ( Exception )
virtual unsigned int read (void *buf, unsigned int len) throw ( Exception )
virtual void setBufferTime (unsigned int time)
virtual ~AlsaDspSource (void) throw ( Exception )

Static Public Member Functions

static AudioSourcecreateDspSource (const char *deviceName, int sampleRate=44100, int bitsPerSample=16, int channel=2) throw ( Exception )
static std::ostream & getReportOutputStream (void) throw ()
static std::ostream & getReportOutputStream (void) throw ()
static unsigned int getReportVerbosity (void) throw ()
static unsigned int getReportVerbosity (void) throw ()
template<class T, class U, class V, class W>
static void reportEvent (unsigned int verbosity, const T t, const U u, const V v, const W w) throw ()
template<class T, class U, class V>
static void reportEvent (unsigned int verbosity, const T t, const U u, const V v) throw ()
template<class T, class U>
static void reportEvent (unsigned int verbosity, const T t, const U u) throw ()
template<class T>
static void reportEvent (unsigned int verbosity, const T t) throw ()
template<class T, class U, class V, class W>
static void reportEvent (unsigned int verbosity, const T t, const U u, const V v, const W w) throw ()
template<class T, class U, class V>
static void reportEvent (unsigned int verbosity, const T t, const U u, const V v) throw ()
template<class T, class U>
static void reportEvent (unsigned int verbosity, const T t, const U u) throw ()
template<class T>
static void reportEvent (unsigned int verbosity, const T t) throw ()
static void setReportOutputStream (std::ostream &os) throw ()
static void setReportOutputStream (std::ostream &os) throw ()
static void setReportVerbosity (unsigned int verbosity) throw ()
static void setReportVerbosity (unsigned int verbosity) throw ()

Protected Member Functions

 AlsaDspSource (void) throw ( Exception )
void init (const char *name) throw ( Exception )
void strip (void) throw ( Exception )

Private Attributes

unsigned int bufferTime
int bytesPerFrame
snd_pcm_t * captureHandle
char * pcmName
bool running

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

Generated by  Doxygen 1.6.0   Back to index