Audaspace 1.5.0
A high level audio library.
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ResampleReader Class Reference

This is the base class for all resampling readers. More...

#include <ResampleReader.h>

Inheritance diagram for ResampleReader:
Inheritance graph

Public Member Functions

virtual void setRate (SampleRate rate)
 Sets the sample rate.
virtual SampleRate getRate ()
 Retrieves the sample rate.
- 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 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.
- Public Member Functions inherited from IReader
virtual ~IReader ()
 Destroys the reader.

Protected Member Functions

 ResampleReader (std::shared_ptr< IReader > reader, SampleRate rate)
 Creates a resampling reader.

Protected Attributes

SampleRate m_rate
 The target sampling rate.
- Protected Attributes inherited from EffectReader
std::shared_ptr< IReaderm_reader
 The reader to read from.

Detailed Description

This is the base class for all resampling readers.

Constructor & Destructor Documentation

◆ ResampleReader()

ResampleReader::ResampleReader ( std::shared_ptr< IReader > reader,
SampleRate rate )

Creates a resampling reader.

readerThe reader to mix.
rateThe target sampling rate.

Member Function Documentation

◆ getRate()

virtual SampleRate ResampleReader::getRate ( )

Retrieves the sample rate.

The target sampling rate.

◆ setRate()

virtual void ResampleReader::setRate ( SampleRate rate)

Sets the sample rate.

rateThe target sampling rate.

The documentation for this class was generated from the following file: