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

Ths class allows to create MutableReaders for any sound. More...

#include <MutableSound.h>

Inheritance diagram for MutableSound:
Inheritance graph
[legend]

Public Member Functions

 MutableSound (std::shared_ptr< ISound > sound)
 Creates a new MutableSound.
 
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

Ths class allows to create MutableReaders for any sound.

Constructor & Destructor Documentation

◆ MutableSound()

MutableSound::MutableSound ( std::shared_ptr< ISound > sound)

Creates a new MutableSound.

Parameters
soundThe sound in which the MutabeReaders created with the createReader() method will be based. If shared pointer to a SoundList object is used in several mutable sounds the sequential playback will not work properly. A copy of the SoundList object must be made in this case.

Member Function Documentation

◆ createReader()

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