group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
audio::AudioManifest Class Reference

#include <AudioRuntime.hpp>

Public Member Functions

bool loadFromFile (std::string_view path, std::vector< std::string > *errors=nullptr)
void buildDefault ()
const AudioEventDeffindEvent (AudioEventId id) const
const AudioNodeDeffindNode (AudioNodeId id) const
const AudioClipDeffindClip (AudioClipId id) const
const AudioBusDeffindBus (AudioBusId id) const
AudioBusId resolveBus (std::string_view name) const
AudioEventId resolveEvent (std::string_view name) const
AudioNodeId resolveNode (std::string_view name) const
AudioClipId resolveClip (std::string_view name) const
std::span< const AudioBusDefbusses () const noexcept
std::span< const AudioClipDefclips () const noexcept
std::span< const AudioEventDefevents () const noexcept
std::span< const AudioNodeDefnodes () const noexcept

Private Member Functions

void rebuildIndexes ()

Private Attributes

std::vector< AudioBusDefbusses_
std::vector< AudioClipDefclips_
std::vector< AudioNodeDefnodes_
std::vector< AudioEventDefevents_
std::unordered_map< StableId, std::size_t > busIndex_
std::unordered_map< StableId, std::size_t > clipIndex_
std::unordered_map< StableId, std::size_t > nodeIndex_
std::unordered_map< StableId, std::size_t > eventIndex_

Member Function Documentation

◆ buildDefault()

void audio::AudioManifest::buildDefault ( )
Here is the call graph for this function:

◆ busses()

std::span< const AudioBusDef > audio::AudioManifest::busses ( ) const
inlinenodiscardnoexcept
Here is the caller graph for this function:

◆ clips()

std::span< const AudioClipDef > audio::AudioManifest::clips ( ) const
inlinenodiscardnoexcept
Here is the caller graph for this function:

◆ events()

std::span< const AudioEventDef > audio::AudioManifest::events ( ) const
inlinenodiscardnoexcept
Here is the caller graph for this function:

◆ findBus()

const AudioBusDef * audio::AudioManifest::findBus ( AudioBusId id) const
nodiscard
Here is the caller graph for this function:

◆ findClip()

const AudioClipDef * audio::AudioManifest::findClip ( AudioClipId id) const
nodiscard
Here is the caller graph for this function:

◆ findEvent()

const AudioEventDef * audio::AudioManifest::findEvent ( AudioEventId id) const
nodiscard
Here is the caller graph for this function:

◆ findNode()

const AudioNodeDef * audio::AudioManifest::findNode ( AudioNodeId id) const
nodiscard
Here is the caller graph for this function:

◆ loadFromFile()

bool audio::AudioManifest::loadFromFile ( std::string_view path,
std::vector< std::string > * errors = nullptr )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ nodes()

std::span< const AudioNodeDef > audio::AudioManifest::nodes ( ) const
inlinenodiscardnoexcept
Here is the caller graph for this function:

◆ rebuildIndexes()

void audio::AudioManifest::rebuildIndexes ( )
private
Here is the caller graph for this function:

◆ resolveBus()

AudioBusId audio::AudioManifest::resolveBus ( std::string_view name) const
nodiscard
Here is the call graph for this function:

◆ resolveClip()

AudioClipId audio::AudioManifest::resolveClip ( std::string_view name) const
nodiscard
Here is the call graph for this function:

◆ resolveEvent()

AudioEventId audio::AudioManifest::resolveEvent ( std::string_view name) const
nodiscard
Here is the call graph for this function:

◆ resolveNode()

AudioNodeId audio::AudioManifest::resolveNode ( std::string_view name) const
nodiscard
Here is the call graph for this function:

Member Data Documentation

◆ busIndex_

std::unordered_map<StableId, std::size_t> audio::AudioManifest::busIndex_
private

◆ busses_

std::vector<AudioBusDef> audio::AudioManifest::busses_
private

◆ clipIndex_

std::unordered_map<StableId, std::size_t> audio::AudioManifest::clipIndex_
private

◆ clips_

std::vector<AudioClipDef> audio::AudioManifest::clips_
private

◆ eventIndex_

std::unordered_map<StableId, std::size_t> audio::AudioManifest::eventIndex_
private

◆ events_

std::vector<AudioEventDef> audio::AudioManifest::events_
private

◆ nodeIndex_

std::unordered_map<StableId, std::size_t> audio::AudioManifest::nodeIndex_
private

◆ nodes_

std::vector<AudioNodeDef> audio::AudioManifest::nodes_
private

The documentation for this class was generated from the following files: