|
Audaspace 1.8.0
A high level audio library.
|
This class reads another reader and changes it's pitch. More...
#include <PitchReader.h>

Public Member Functions | |
| PitchReader (std::shared_ptr< IReader > reader, float pitch) | |
| Creates a new pitch reader. | |
| virtual Specs | getSpecs () const |
| Returns the specification of the reader. | |
| float | getPitch () const |
| Retrieves the pitch. | |
| void | setPitch (float pitch) |
| Sets the pitch. | |
| Public Member Functions inherited from EffectReader | |
| EffectReader (std::shared_ptr< IReader > reader) | |
| Creates a new effect reader. | |
| virtual | ~EffectReader () |
| Destroys the reader. | |
| 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 void | read (int &length, bool &eos, sample_t *buffer) |
| Request to read the next length samples out of the source. | |
| Public Member Functions inherited from IReader | |
| virtual | ~IReader () |
| Destroys the reader. | |
Additional Inherited Members | |
| Protected Attributes inherited from EffectReader | |
| std::shared_ptr< IReader > | m_reader |
| The reader to read from. | |
This class reads another reader and changes it's pitch.
| PitchReader::PitchReader | ( | std::shared_ptr< IReader > | reader, |
| float | pitch ) |
Creates a new pitch reader.
| reader | The reader to read from. |
| pitch | The pitch value. |
| float PitchReader::getPitch | ( | ) | const |
Retrieves the pitch.
|
virtual |
Returns the specification of the reader.
Reimplemented from EffectReader.
| void PitchReader::setPitch | ( | float | pitch | ) |
Sets the pitch.
| pitch | The new pitch value. |