AudioResources
Generated from engine/audio/audio_resources.h at 862e08b. The text under each declaration is the header's own comment, word for word. About the reference says how these pages are made.
#include "engine/audio/audio_resources.h" · namespace labrador
class AudioResources
Section titled “class AudioResources”The sound banks, cached by name. The audio counterpart to RenderResources, and separate from it because the module table (ARCHITECTURE.md) has render and audio depending on core and math alone - neither knows the other exists, so nothing that only draws has to compile the audio stack to do it.
SoundBankHandle
Section titled “SoundBankHandle”AudioResources
Section titled “AudioResources”resolve_sound_bank
Section titled “resolve_sound_bank”SoundBankHandle resolve_sound_bank(const std::string& sound_bank_name) const;Load-time. Throws std::out_of_range naming the bank if nothing loaded it. Same bargain as RenderResources: resolve a name once, keep the handle, and never search by name again.
sound_bank
Section titled “sound_bank”SoundBank* sound_bank(const std::string& sound_bank_name) const;Const and non-mutating, like every other registry getter: throws std::out_of_range naming the bank if it is absent or released.
add_sound_bank
Section titled “add_sound_bank”void add_sound_bank(const std::string& sound_bank_name,Deliberately nothing releases a bank short of the destructor. Banks are not device resources, so a device loss leaves them alone, and releasing one would leave every live object holding a freed SoundBank*. A bank holds only handles: the voices and the wave bank behind them belong to the AudioDevice, which releases them itself.
Related types
Section titled “Related types”Named in the public declarations above: Handle, SoundBank.
In the samples and tests
Section titled “In the samples and tests”The files that include this header directly. A file can also reach it through another header.
samples/audio/smoke_test.cpptests/audio/audio_resources_tests.cpp,sound_bank_object_tests.cpp
Development documentation (unreleased). Built from Labrador 862e08b of 2026-10-08.