|
| SquareReader (float frequency, SampleRate sampleRate) |
| Creates a new reader.
|
|
void | setFrequency (float frequency) |
| Sets the frequency of the wave.
|
|
virtual bool | isSeekable () const |
| Tells whether the source provides seeking functionality or not.
|
|
virtual void | seek (int position) |
| Seeks to a specific position in the source.
|
|
virtual int | getLength () const |
| Returns an approximated length of the source in samples.
|
|
virtual int | getPosition () const |
| Returns the position of the source as a sample count value.
|
|
virtual Specs | getSpecs () const |
| Returns the specification of the reader.
|
|
virtual void | read (int &length, bool &eos, sample_t *buffer) |
| Request to read the next length samples out of the source.
|
|
virtual | ~IReader () |
| Destroys the reader.
|
|
virtual bool | isSeekable () const =0 |
| Tells whether the source provides seeking functionality or not.
|
|
virtual void | seek (int position)=0 |
| Seeks to a specific position in the source.
|
|
virtual int | getLength () const =0 |
| Returns an approximated length of the source in samples.
|
|
virtual int | getPosition () const =0 |
| Returns the position of the source as a sample count value.
|
|
virtual Specs | getSpecs () const =0 |
| Returns the specification of the reader.
|
|
virtual void | read (int &length, bool &eos, sample_t *buffer)=0 |
| Request to read the next length samples out of the source.
|
|
This class is used for square tone playback.
The output format is in the 16 bit format and stereo, the sample rate can be specified. As the two channels both play the same the output could also be mono, but in most cases this will result in having to resample for output, so stereo sound is created directly.