This sound represents sequenced entries to play a sound scene.
More...
#include <Sequence.h>
This sound represents sequenced entries to play a sound scene.
◆ Sequence()
| Sequence::Sequence |
( |
Specs | specs, |
|
|
float | fps, |
|
|
bool | muted ) |
Creates a new sound scene.
- Parameters
-
| specs | The output audio data specification. |
| fps | The FPS of the scene. |
| muted | Whether the whole scene is muted. |
◆ add()
| std::shared_ptr< SequenceEntry > Sequence::add |
( |
std::shared_ptr< ISound > | sound, |
|
|
double | begin, |
|
|
double | end, |
|
|
double | skip ) |
Adds a new entry to the scene.
- Parameters
-
| sound | The sound this entry should play. |
| begin | The start time. |
| end | The end time or a negative value if determined by the sound. |
| skip | How much seconds should be skipped at the beginning. |
- Returns
- The entry added.
◆ createQualityReader()
Creates a new reader with indicated resampling quality.
- Parameters
-
| quality | The resampling quality. |
- Returns
- The new reader.
◆ createReader()
| virtual std::shared_ptr< IReader > Sequence::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
-
| Exception | An exception may be thrown if there has been a more unexpected error during reader creation. |
Implements ISound.
◆ getAnimProperty()
Retrieves one of the animated properties of the sound.
- Parameters
-
| type | Which animated property to retrieve. |
- Returns
- A pointer to the animated property, valid as long as the sound is.
◆ getDistanceModel()
Retrieves the distance model.
- Returns
- The distance model.
◆ getDopplerFactor()
| float Sequence::getDopplerFactor |
( |
| ) |
const |
Retrieves the doppler factor.
This value is a scaling factor for the velocity vectors of sources and listener which is used while calculating the doppler effect.
- Returns
- The doppler factor.
◆ getFPS()
| float Sequence::getFPS |
( |
| ) |
const |
Retrieves the scene's FPS.
- Returns
- The scene's FPS.
◆ getSpecs()
| Specs Sequence::getSpecs |
( |
| ) |
|
Retrieves the audio output specification.
- Returns
- The specification.
◆ getSpeedOfSound()
| float Sequence::getSpeedOfSound |
( |
| ) |
const |
Retrieves the speed of sound.
This value is needed for doppler effect calculation.
- Returns
- The speed of sound.
◆ isMuted()
| bool Sequence::isMuted |
( |
| ) |
const |
Retrieves the muting state of the scene.
- Returns
- Whether the scene is muted.
◆ mute()
| void Sequence::mute |
( |
bool | muted | ) |
|
Sets the muting state of the scene.
- Parameters
-
| muted | Whether the scene is muted. |
◆ remove()
Removes an entry from the scene.
- Parameters
-
| entry | The entry to remove. |
◆ setDistanceModel()
Sets the distance model.
- Parameters
-
◆ setDopplerFactor()
| void Sequence::setDopplerFactor |
( |
float | factor | ) |
|
Sets the doppler factor.
This value is a scaling factor for the velocity vectors of sources and listener which is used while calculating the doppler effect.
- Parameters
-
| factor | The new doppler factor. |
◆ setFPS()
| void Sequence::setFPS |
( |
float | fps | ) |
|
Sets the scene's FPS.
- Parameters
-
◆ setSpecs()
| void Sequence::setSpecs |
( |
Specs | specs | ) |
|
Sets the audio output specification.
- Parameters
-
| specs | The new specification. |
◆ setSpeedOfSound()
| void Sequence::setSpeedOfSound |
( |
float | speed | ) |
|
Sets the speed of sound.
This value is needed for doppler effect calculation.
- Parameters
-
| speed | The new speed of sound. |
The documentation for this class was generated from the following file: