SoundObject¶
class SoundObject
Base class for Amplitude sound objects.
Functions¶
Name | Description |
---|---|
~SoundObject | Default destructor. |
GetGain | Gets the linear gain of the sound object. |
GetPitch | Gets the actual pitch of the sound object. |
GetPriority | Gets the actual priority of the sound object. |
GetEffect | Gets the Effect object associated with this sound object. |
GetAttenuation | Gets the Attenuation object associated with this sound object. |
GetBus | Returns the bus this sound object will play on. |
Function Details¶
GetAttenuation¶
* GetAttenuation() const
Gets the Attenuation object associated with this sound object.
- Return
- The Attenuation object.
GetBus¶
[[nodiscard]] virtual Bus GetBus() const = 0
Returns the bus this sound object will play on.
- Return
- The bus this sound object will play on.
GetEffect¶
* GetEffect() const
Gets the Effect object associated with this sound object.
- Return
- The Effect object.
GetGain¶
[[nodiscard]] virtual const RtpcValue& GetGain() const = 0
Gets the linear gain of the sound object.
- Return
- The sound object linear gain.
GetPitch¶
[[nodiscard]] virtual const RtpcValue& GetPitch() const = 0
Gets the actual pitch of the sound object.
- Return
- The sound object pitch.
GetPriority¶
[[nodiscard]] virtual const RtpcValue& GetPriority() const = 0
Gets the actual priority of the sound object.
- Return
- The sound object priority.
~SoundObject¶
virtual ~SoundObject() = default
Default destructor.