Audaspace  1.4.0
A high level audio library.
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SpecsChanger Class Reference

This sound is a base class for all mixer factories. More...

#include <SpecsChanger.h>

Inheritance diagram for SpecsChanger:
Inheritance graph
[legend]

Public Member Functions

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

Protected Member Functions

std::shared_ptr< IReadergetReader () const
 Returns the reader created out of the sound. More...
 

Protected Attributes

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 is a base class for all mixer factories.

Constructor & Destructor Documentation

◆ SpecsChanger()

SpecsChanger::SpecsChanger ( std::shared_ptr< ISound sound,
DeviceSpecs  specs 
)

Creates a new sound.

Parameters
soundThe sound to create the readers to mix out of.
specsThe target specification.

Member Function Documentation

◆ getReader()

std::shared_ptr<IReader> SpecsChanger::getReader ( ) const
protected

Returns the reader created out of the sound.

This method can be used for the createReader function of the implementing classes.

Returns
The reader to mix.

◆ getSound()

std::shared_ptr<ISound> SpecsChanger::getSound ( ) const

Returns the saved sound.

Returns
The sound.

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