Audaspace  1.3.0
A high level audio library.
Public Member Functions | List of all members
Limiter Class Reference

This sound limits another sound in start and end time. More...

#include <Limiter.h>

Inheritance diagram for Limiter:
Inheritance graph
[legend]

Public Member Functions

 Limiter (std::shared_ptr< ISound > sound, float start=0, float end=-1)
 Creates a new limiter sound. More...
 
float getStart () const
 Returns the start time.
 
float getEnd () const
 Returns the end time.
 
virtual std::shared_ptr< IReadercreateReader ()
 Creates a reader for playback of the sound source. More...
 
- Public Member Functions inherited from Effect
 Effect (std::shared_ptr< ISound > sound)
 Creates a new sound. More...
 
virtual ~Effect ()
 Destroys the sound.
 
std::shared_ptr< ISoundgetSound () const
 Returns the saved sound. More...
 
- Public Member Functions inherited from ISound
virtual ~ISound ()
 Destroys the sound.
 

Additional Inherited Members

- Protected Member Functions inherited from Effect
std::shared_ptr< IReadergetReader () const
 Returns the reader created out of the sound. More...
 
- Protected Attributes inherited from Effect
std::shared_ptr< ISoundm_sound
 If there is no reader it is created out of this sound.
 

Detailed Description

This sound limits another sound in start and end time.

Constructor & Destructor Documentation

◆ Limiter()

Limiter::Limiter ( std::shared_ptr< ISound sound,
float  start = 0,
float  end = -1 
)

Creates a new limiter sound.

Parameters
soundThe input sound.
startThe desired start time.
endThe desired end time, a negative value signals that it should play to the end.

Member Function Documentation

◆ createReader()

virtual std::shared_ptr<IReader> Limiter::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: