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

This sound plays two other factories, playing them the same time and modulating/multiplying them. More...

#include <Modulator.h>

Inheritance diagram for Modulator:
Inheritance graph
[legend]

Public Member Functions

 Modulator (std::shared_ptr< ISound > sound1, std::shared_ptr< ISound > sound2)
 Creates a new modulator sound.
 
virtual std::shared_ptr< IReadercreateReader ()
 Creates a reader for playback of the sound source.
 
- Public Member Functions inherited from ISound
virtual ~ISound ()
 Destroys the sound.
 

Detailed Description

This sound plays two other factories, playing them the same time and modulating/multiplying them.

Note
Readers from the underlying factories must have the same sample rate and channel count.

Constructor & Destructor Documentation

◆ Modulator()

Modulator::Modulator ( std::shared_ptr< ISound > sound1,
std::shared_ptr< ISound > sound2 )

Creates a new modulator sound.

Parameters
sound1The first input sound.
sound2The second input sound.

Member Function Documentation

◆ createReader()

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