Recording Class Reference

#include <sample.h>

Inheritance diagram for Recording:

Inheritance graph
[legend]
Collaboration diagram for Recording:

Collaboration graph
[legend]
List of all members.

Detailed Description

A PCMSample recorded from audio input (microphone).

Definition at line 81 of file sample.h.

Public Member Functions

void append (void *more, unsigned long sz)
 Append -- note that this cannot be called in the audio thread -- it occurs at a kernel interrupt level and we cannot allocate memory there!
void fill (const void *more, unsigned long sz)
void fillSilence (unsigned long sz)
virtual bool isFull ()
 Recording (unsigned long initial_size=28672, unsigned chans=2, AUDIO_FORMAT format=AF_Int16, double samplerate=44100)
bool save (const std::string &path)
void skipfill (const void *more, unsigned long sz, unsigned block)
void trim ()

Protected Member Functions

virtual ~Recording ()

Protected Attributes

unsigned long reserved


Member Function Documentation

void append void *  more,
unsigned long  sz
 

Append -- note that this cannot be called in the audio thread -- it occurs at a kernel interrupt level and we cannot allocate memory there!

Definition at line 99 of file sample.cpp.

References PCMSample::bytes_size, PCMSample::data, and reserved.


The documentation for this class was generated from the following files:
Generated on Fri Aug 5 19:43:42 2005 for TaptAudio by  doxygen 1.4.3