Audaspace 1.5.0
A high level audio library.
|
This class represents a sequenced entry in a sequencer sound. More...
#include <SequenceEntry.h>
Public Member Functions | |
SequenceEntry (std::shared_ptr< ISound > sound, double begin, double end, double skip, std::shared_ptr< SequenceData > sequence_data, int id) | |
Creates a new sequenced entry. | |
virtual void | lock () |
Locks the entry. | |
virtual void | unlock () |
Unlocks the previously locked entry. | |
std::shared_ptr< ISound > | getSound () |
Retrieves the sound of the entry. | |
void | setSound (std::shared_ptr< ISound > sound) |
Sets the sound of the entry. | |
void | move (double begin, double end, double skip) |
Moves the entry. | |
bool | isMuted () |
Retrieves the muting state of the entry. | |
void | mute (bool mute) |
Sets the muting state of the entry. | |
int | getID () const |
Retrieves the ID of the entry. | |
AnimateableProperty * | getAnimProperty (AnimateablePropertyType type) |
Retrieves one of the animated properties of the entry. | |
bool | isRelative () |
Checks whether the source location, velocity and orientation are relative to the listener. | |
void | setRelative (bool relative) |
Sets whether the source location, velocity and orientation are relative to the listener. | |
float | getVolumeMaximum () |
Retrieves the maximum volume of a source. | |
void | setVolumeMaximum (float volume) |
Sets the maximum volume of a source. | |
float | getVolumeMinimum () |
Retrieves the minimum volume of a source. | |
void | setVolumeMinimum (float volume) |
Sets the minimum volume of a source. | |
float | getDistanceMaximum () |
Retrieves the maximum distance of a source. | |
void | setDistanceMaximum (float distance) |
Sets the maximum distance of a source. | |
float | getDistanceReference () |
Retrieves the reference distance of a source. | |
void | setDistanceReference (float distance) |
Sets the reference distance of a source. | |
float | getAttenuation () |
Retrieves the attenuation of a source. | |
void | setAttenuation (float factor) |
Sets the attenuation of a source. | |
float | getConeAngleOuter () |
Retrieves the outer angle of the cone of a source. | |
void | setConeAngleOuter (float angle) |
Sets the outer angle of the cone of a source. | |
float | getConeAngleInner () |
Retrieves the inner angle of the cone of a source. | |
void | setConeAngleInner (float angle) |
Sets the inner angle of the cone of a source. | |
float | getConeVolumeOuter () |
Retrieves the outer volume of the cone of a source. | |
void | setConeVolumeOuter (float volume) |
Sets the outer volume of the cone of a source. | |
Friends | |
class | SequenceHandle |
This class represents a sequenced entry in a sequencer sound.
SequenceEntry::SequenceEntry | ( | std::shared_ptr< ISound > | sound, |
double | begin, | ||
double | end, | ||
double | skip, | ||
std::shared_ptr< SequenceData > | sequence_data, | ||
int | id ) |
Creates a new sequenced entry.
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. |
sequence_data | Reference to sequence_data. Mainly needed to get the FPS of the scene. |
id | The ID of the entry. |
AnimateableProperty * SequenceEntry::getAnimProperty | ( | AnimateablePropertyType | type | ) |
Retrieves one of the animated properties of the entry.
type | Which animated property to retrieve. |
float SequenceEntry::getAttenuation | ( | ) |
Retrieves the attenuation of a source.
float SequenceEntry::getConeAngleInner | ( | ) |
Retrieves the inner angle of the cone of a source.
float SequenceEntry::getConeAngleOuter | ( | ) |
Retrieves the outer angle of the cone of a source.
float SequenceEntry::getConeVolumeOuter | ( | ) |
Retrieves the outer volume of the cone of a source.
The volume between inner and outer angle is interpolated between inner volume and this value.
float SequenceEntry::getDistanceMaximum | ( | ) |
Retrieves the maximum distance of a source.
If a source is further away from the reader than this distance, the volume will automatically be set to 0.
float SequenceEntry::getDistanceReference | ( | ) |
Retrieves the reference distance of a source.
int SequenceEntry::getID | ( | ) | const |
Retrieves the ID of the entry.
std::shared_ptr< ISound > SequenceEntry::getSound | ( | ) |
Retrieves the sound of the entry.
float SequenceEntry::getVolumeMaximum | ( | ) |
Retrieves the maximum volume of a source.
float SequenceEntry::getVolumeMinimum | ( | ) |
Retrieves the minimum volume of a source.
bool SequenceEntry::isMuted | ( | ) |
Retrieves the muting state of the entry.
bool SequenceEntry::isRelative | ( | ) |
Checks whether the source location, velocity and orientation are relative to the listener.
|
virtual |
Locks the entry.
Implements ILockable.
void SequenceEntry::move | ( | double | begin, |
double | end, | ||
double | skip ) |
Moves the entry.
begin | The new start time. |
end | The new end time or a negative value if unknown. |
skip | How many seconds to skip at the beginning. |
void SequenceEntry::mute | ( | bool | mute | ) |
Sets the muting state of the entry.
mute | Whether the entry should be muted or not. |
void SequenceEntry::setAttenuation | ( | float | factor | ) |
Sets the attenuation of a source.
This value is used for distance calculation.
factor | The new attenuation. |
void SequenceEntry::setConeAngleInner | ( | float | angle | ) |
Sets the inner angle of the cone of a source.
angle | The new inner angle of the cone. |
void SequenceEntry::setConeAngleOuter | ( | float | angle | ) |
Sets the outer angle of the cone of a source.
angle | The new outer angle of the cone. |
void SequenceEntry::setConeVolumeOuter | ( | float | volume | ) |
Sets the outer volume of the cone of a source.
The volume between inner and outer angle is interpolated between inner volume and this value.
volume | The new outer volume of the cone. |
void SequenceEntry::setDistanceMaximum | ( | float | distance | ) |
Sets the maximum distance of a source.
If a source is further away from the reader than this distance, the volume will automatically be set to 0.
distance | The new maximum distance. |
void SequenceEntry::setDistanceReference | ( | float | distance | ) |
Sets the reference distance of a source.
distance | The new reference distance. |
void SequenceEntry::setRelative | ( | bool | relative | ) |
Sets whether the source location, velocity and orientation are relative to the listener.
relative | Whether the source is relative. |
void SequenceEntry::setSound | ( | std::shared_ptr< ISound > | sound | ) |
Sets the sound of the entry.
sound | The new sound. |
void SequenceEntry::setVolumeMaximum | ( | float | volume | ) |
Sets the maximum volume of a source.
volume | The new maximum volume. |
void SequenceEntry::setVolumeMinimum | ( | float | volume | ) |
Sets the minimum volume of a source.
volume | The new minimum volume. |
|
virtual |
Unlocks the previously locked entry.
Implements ILockable.