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

This sound creates a resampling reader that does simple linear resampling. More...

#include <LinearResample.h>

Inheritance diagram for LinearResample:
Inheritance graph
[legend]

Public Member Functions

 LinearResample (std::shared_ptr< ISound > sound, DeviceSpecs specs)
 Creates a new sound.
 
virtual std::shared_ptr< IReadercreateReader ()
 Creates a reader for playback of the sound source.
 
- Public Member Functions inherited from SpecsChanger
 SpecsChanger (std::shared_ptr< ISound > sound, DeviceSpecs specs)
 Creates a new sound.
 
DeviceSpecs getSpecs () const
 Returns the target specification for resampling.
 
std::shared_ptr< ISoundgetSound () const
 Returns the saved sound.
 
- Public Member Functions inherited from ISound
virtual ~ISound ()
 Destroys the sound.
 

Additional Inherited Members

- Protected Member Functions inherited from SpecsChanger
std::shared_ptr< IReadergetReader () const
 Returns the reader created out of the sound.
 
- Protected Attributes inherited from SpecsChanger
const DeviceSpecs m_specs
 The target specification for resampling.
 
std::shared_ptr< ISoundm_sound
 If there is no reader it is created out of this sound.
 

Detailed Description

This sound creates a resampling reader that does simple linear resampling.

Constructor & Destructor Documentation

◆ LinearResample()

LinearResample::LinearResample ( std::shared_ptr< ISound > sound,
DeviceSpecs specs )

Creates a new sound.

Parameters
soundThe input sound.
specsThe target specifications.

Member Function Documentation

◆ createReader()

virtual std::shared_ptr< IReader > LinearResample::createReader ( )
virtual

Creates a reader for playback of the sound source.

Returns
A pointer to an IReader object or nullptr if there has been an error.
Exceptions
ExceptionAn exception may be thrown if there has been a more unexpected error during reader creation.

Implements ISound.


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