Audaspace
1.3.0
A high level audio library.
|
This is the base class for all resampling readers. More...
#include <ResampleReader.h>
Public Member Functions | |
virtual void | setRate (SampleRate rate) |
Sets the sample rate. More... | |
virtual SampleRate | getRate () |
Retrieves the sample rate. More... | |
![]() | |
EffectReader (std::shared_ptr< IReader > reader) | |
Creates a new effect reader. More... | |
virtual | ~EffectReader () |
Destroys the reader. | |
virtual bool | isSeekable () const |
Tells whether the source provides seeking functionality or not. More... | |
virtual void | seek (int position) |
Seeks to a specific position in the source. More... | |
virtual int | getLength () const |
Returns an approximated length of the source in samples. More... | |
virtual int | getPosition () const |
Returns the position of the source as a sample count value. More... | |
virtual Specs | getSpecs () const |
Returns the specification of the reader. More... | |
virtual void | read (int &length, bool &eos, sample_t *buffer) |
Request to read the next length samples out of the source. More... | |
![]() | |
virtual | ~IReader () |
Destroys the reader. | |
Protected Member Functions | |
ResampleReader (std::shared_ptr< IReader > reader, SampleRate rate) | |
Creates a resampling reader. More... | |
Protected Attributes | |
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.
|
protected |
Creates a resampling reader.
reader | The reader to mix. |
rate | The target sampling rate. |
|
virtual |
Retrieves the sample rate.
|
virtual |
Sets the sample rate.
rate | The target sampling rate. |