This is the base class for all resampling readers.
More...
#include <ResampleReader.h>
|
| virtual void | setRate (SampleRate rate) |
| | Sets the sample rate.
|
| virtual SampleRate | getRate () |
| | Retrieves the sample rate.
|
| | 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 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.
|
|
|
SampleRate | m_rate |
| | The target sampling rate.
|
|
std::shared_ptr< IReader > | m_reader |
| | The reader to read from.
|
This is the base class for all resampling readers.
◆ ResampleReader()
| ResampleReader::ResampleReader |
( |
std::shared_ptr< IReader > | reader, |
|
|
SampleRate | rate ) |
|
protected |
Creates a resampling reader.
- Parameters
-
| reader | The reader to mix. |
| rate | The target sampling rate. |
◆ getRate()
Retrieves the sample rate.
- Returns
- The target sampling rate.
◆ setRate()
| virtual void ResampleReader::setRate |
( |
SampleRate | rate | ) |
|
|
virtual |
Sets the sample rate.
- Parameters
-
| rate | The target sampling rate. |
The documentation for this class was generated from the following file: