This class represents sequenced entries to play a sound scene.
More...
#include <SequenceData.h>
This class represents sequenced entries to play a sound scene.
◆ SequenceData()
| SequenceData::SequenceData |
( |
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 > SequenceData::add |
( |
std::shared_ptr< ISound > | sound, |
|
|
std::shared_ptr< SequenceData > | sequence_data, |
|
|
double | begin, |
|
|
double | end, |
|
|
double | skip ) |
Adds a new entry to the scene.
- Parameters
-
| sound | The sound this entry should play. |
| sequence_data | Reference to sequence_data. Mainly needed to get the FPS of the scene. |
| 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.
◆ getAnimProperty()
Retrieves one of the animated properties of the sequence.
- Parameters
-
| type | Which animated property to retrieve. |
- Returns
- A pointer to the animated property, valid as long as the sequence is.
◆ getDistanceModel()
Retrieves the distance model.
- Returns
- The distance model.
◆ getDopplerFactor()
| float SequenceData::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 SequenceData::getFPS |
( |
| ) |
const |
Retrieves the scene's FPS.
- Returns
- The scene's FPS.
◆ getSpecs()
| Specs SequenceData::getSpecs |
( |
| ) |
|
Retrieves the audio output specification.
- Returns
- The specification.
◆ getSpeedOfSound()
| float SequenceData::getSpeedOfSound |
( |
| ) |
const |
Retrieves the speed of sound.
This value is needed for doppler effect calculation.
- Returns
- The speed of sound.
◆ isMuted()
| bool SequenceData::isMuted |
( |
| ) |
const |
Retrieves the muting state of the scene.
- Returns
- Whether the scene is muted.
◆ lock()
| virtual void SequenceData::lock |
( |
| ) |
|
|
virtual |
◆ mute()
| void SequenceData::mute |
( |
bool | muted | ) |
|
Sets the muting state of the scene.
- Parameters
-
| muted | Whether the scene is muted. |
◆ remove()
| void SequenceData::remove |
( |
std::shared_ptr< SequenceEntry > | entry | ) |
|
Removes an entry from the scene.
- Parameters
-
| entry | The entry to remove. |
◆ setDistanceModel()
Sets the distance model.
- Parameters
-
◆ setDopplerFactor()
| void SequenceData::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 SequenceData::setFPS |
( |
float | fps | ) |
|
Sets the scene's FPS.
- Parameters
-
◆ setSpecs()
| void SequenceData::setSpecs |
( |
Specs | specs | ) |
|
Sets the audio output specification.
- Parameters
-
| specs | The new specification. |
◆ setSpeedOfSound()
| void SequenceData::setSpeedOfSound |
( |
float | speed | ) |
|
Sets the speed of sound.
This value is needed for doppler effect calculation.
- Parameters
-
| speed | The new speed of sound. |
◆ unlock()
| virtual void SequenceData::unlock |
( |
| ) |
|
|
virtual |
Unlocks the previously locked sequence.
Implements ILockable.
The documentation for this class was generated from the following file: