audiere::SineWave Class Reference

Inheritance diagram for audiere::SineWave:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SineWave (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 10 of file tone.cpp.


Constructor & Destructor Documentation

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

Definition at line 12 of file tone.cpp.


Member Function Documentation

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

Implement this method in subclasses.

Implements audiere::BasicSource.

Definition at line 27 of file tone.cpp.

void audiere::SineWave::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 17 of file tone.cpp.

References audiere::SF_S16.

void audiere::SineWave::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 42 of file tone.cpp.


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