#include <AudioRuntime.hpp>
|
| bool | loadManifest (std::string_view path, std::vector< std::string > *errors=nullptr) |
| void | loadDefaultManifest () |
| const AudioManifest & | manifest () const noexcept |
| const AudioRuntimeStats & | stats () const noexcept |
| void | resetStats () noexcept |
| void | setObjectTransform (AudioObjectId object, const glm::vec3 &position, const glm::vec3 &velocity=glm::vec3{0.0f}) |
| void | removeObject (AudioObjectId object) |
| void | setRtpc (AudioObjectId object, RtpcId rtpc, float value) |
| void | setSwitch (AudioObjectId object, SwitchGroupId group, SwitchValueId value) |
| void | setState (StateGroupId group, StateValueId value) |
| void | setBusVolume (AudioBusId bus, float volume) |
| float | rtpcValue (AudioObjectId object, RtpcId rtpc, float fallback=0.0f) const |
| SwitchValueId | switchValue (AudioObjectId object, SwitchGroupId group) const |
| float | busGain (AudioBusId bus) const |
| std::uint16_t | busMaxVoices (AudioBusId bus) const |
| float | busPriorityOffset (AudioBusId bus) const |
| std::vector< AudioCommand > | postEvent (AudioEventId event, AudioObjectId object=kGlobalObject, float gain=1.0f) |
| std::vector< AudioCommand > | postEvent (std::string_view eventName, AudioObjectId object=kGlobalObject, float gain=1.0f) |
|
| void | resolveNode (const AudioNodeDef &node, AudioObjectId object, float gain, std::vector< AudioCommand > &out, int depth) |
| void | resolveStopNode (const AudioNodeDef &node, std::vector< AudioCommand > &out, int depth) const |
| void | appendClipCommand (const AudioClipDef &clip, AudioObjectId object, float gain, float priorityOffset, bool force2D, bool force3D, std::optional< bool > loopOverride, std::vector< AudioCommand > &out) const |
| const AudioObjectState * | findObject (AudioObjectId object) const |
◆ appendClipCommand()
| void audio::AudioRuntime::appendClipCommand |
( |
const AudioClipDef & | clip, |
|
|
AudioObjectId | object, |
|
|
float | gain, |
|
|
float | priorityOffset, |
|
|
bool | force2D, |
|
|
bool | force3D, |
|
|
std::optional< bool > | loopOverride, |
|
|
std::vector< AudioCommand > & | out ) const |
|
private |
◆ busGain()
| float audio::AudioRuntime::busGain |
( |
AudioBusId | bus | ) |
const |
|
nodiscard |
◆ busMaxVoices()
| std::uint16_t audio::AudioRuntime::busMaxVoices |
( |
AudioBusId | bus | ) |
const |
|
nodiscard |
◆ busPriorityOffset()
| float audio::AudioRuntime::busPriorityOffset |
( |
AudioBusId | bus | ) |
const |
|
nodiscard |
◆ findObject()
◆ loadDefaultManifest()
| void audio::AudioRuntime::loadDefaultManifest |
( |
| ) |
|
◆ loadManifest()
| bool audio::AudioRuntime::loadManifest |
( |
std::string_view | path, |
|
|
std::vector< std::string > * | errors = nullptr ) |
◆ manifest()
◆ postEvent() [1/2]
◆ postEvent() [2/2]
◆ removeObject()
◆ resetStats()
| void audio::AudioRuntime::resetStats |
( |
| ) |
|
|
inlinenoexcept |
◆ resolveNode()
◆ resolveStopNode()
| void audio::AudioRuntime::resolveStopNode |
( |
const AudioNodeDef & | node, |
|
|
std::vector< AudioCommand > & | out, |
|
|
int | depth ) const |
|
private |
◆ rtpcValue()
| float audio::AudioRuntime::rtpcValue |
( |
AudioObjectId | object, |
|
|
RtpcId | rtpc, |
|
|
float | fallback = 0.0f ) const |
|
nodiscard |
◆ setBusVolume()
| void audio::AudioRuntime::setBusVolume |
( |
AudioBusId | bus, |
|
|
float | volume ) |
◆ setObjectTransform()
| void audio::AudioRuntime::setObjectTransform |
( |
AudioObjectId | object, |
|
|
const glm::vec3 & | position, |
|
|
const glm::vec3 & | velocity = glm::vec3{0.0f} ) |
◆ setRtpc()
◆ setState()
◆ setSwitch()
◆ stats()
◆ switchValue()
◆ busVolumeOverrides_
| std::unordered_map<StableId, float> audio::AudioRuntime::busVolumeOverrides_ |
|
private |
◆ manifest_
◆ objects_
◆ randomLastChoice_
| std::unordered_map<StableId, std::size_t> audio::AudioRuntime::randomLastChoice_ |
|
private |
◆ rng_
| std::mt19937 audio::AudioRuntime::rng_ {0xA0D10125u} |
|
private |
◆ sequenceCursors_
| std::unordered_map<StableId, std::size_t> audio::AudioRuntime::sequenceCursors_ |
|
private |
◆ states_
◆ stats_
The documentation for this class was generated from the following files: