Audaspace 1.5.0
A high level audio library.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
PitchReader Class Reference

This class reads another reader and changes it's pitch. More...

#include <PitchReader.h>

Inheritance diagram for PitchReader:
Inheritance graph
[legend]

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< IReaderm_reader
 The reader to read from.
 

Detailed Description

This class reads another reader and changes it's pitch.

Constructor & Destructor Documentation

◆ PitchReader()

PitchReader::PitchReader ( std::shared_ptr< IReader > reader,
float pitch )

Creates a new pitch reader.

Parameters
readerThe reader to read from.
pitchThe pitch value.

Member Function Documentation

◆ getPitch()

float PitchReader::getPitch ( ) const

Retrieves the pitch.

Returns
The current pitch value.

◆ getSpecs()

virtual Specs PitchReader::getSpecs ( ) const
virtual

Returns the specification of the reader.

Returns
The Specs structure.

Reimplemented from EffectReader.

◆ setPitch()

void PitchReader::setPitch ( float pitch)

Sets the pitch.

Parameters
pitchThe new pitch value.

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