audiere::SquareWave Class Reference

Inheritance diagram for audiere::SquareWave:

Inheritance graph
[legend]
Collaboration diagram for audiere::SquareWave:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SquareWave (double frequency)
void getFormat (int &channel_count, int &sample_rate, SampleFormat &sample_format)
int doRead (int frame_count, void *buffer)
void reset ()

Detailed Description

Definition at line 7 of file square_wave.cpp.


Constructor & Destructor Documentation

audiere::SquareWave::SquareWave double  frequency  )  [inline]
 

Definition at line 9 of file square_wave.cpp.


Member Function Documentation

int audiere::SquareWave::doRead int  frame_count,
void *  buffer
[inline, virtual]
 

Implement this method in subclasses.

Implements audiere::BasicSource.

Definition at line 24 of file square_wave.cpp.

void audiere::SquareWave::getFormat int &  channel_count,
int &  sample_rate,
SampleFormat sample_format
[inline, virtual]
 

Retrieve the number of channels, sample rate, and sample format of the sample source.

Implements audiere::SampleSource.

Definition at line 14 of file square_wave.cpp.

References audiere::SF_S16.

void audiere::SquareWave::reset  )  [inline, virtual]
 

Reset the sample source. This has the same effect as setPosition(0) on a seekable source. On an unseekable source, it resets all internal state to the way it was when the source was first created.

Implements audiere::SampleSource.

Definition at line 39 of file square_wave.cpp.


The documentation for this class was generated from the following file:
Generated on Mon Feb 13 23:09:39 2006 for audiere by  doxygen 1.4.6