|
Vulkan Schnee 0.0.1 (22840dc8)
High-performance rendering engine
|
Registry for audio flows keyed by (glTF path, flow name). More...
#include <AudioFlowStore.h>
Classes | |
| struct | Record |
| One stored flow. More... | |
Public Member Functions | |
| AudioFlowStore ()=default | |
| AudioFlowStore (const AudioFlowStore &)=delete | |
| AudioFlowStore & | operator= (const AudioFlowStore &)=delete |
| AudioFlowHandle | registerFlow (std::filesystem::path gltfPath, std::string flowName, std::string flowJson, std::string baseDir) |
| Register a flow document under its identity. | |
| AudioFlowHandle | find (const std::filesystem::path &gltfPath, const std::string &flowName) const |
| Get the registered handle for a flow identity. | |
| bool | flow (const AudioFlowHandle &handle, std::string *outJson, std::string *outBaseDir) const |
| Look up a flow's JSON + base directory. | |
| FlowSettingHandle | findSetting (const AudioFlowHandle &handle, const std::string &settingName) const |
| Resolve a named setting of a flow to a stable handle. | |
| size_t | size () const |
| Number of registered flows. | |
| void | clear () |
| Drop all registered flows. | |
Static Private Member Functions | |
| static std::string | keyFor (const AudioFlowHandle &handle) |
Private Attributes | |
| std::vector< Record > | records_ |
| std::unordered_map< std::string, uint32_t > | keyToIndex_ |
Registry for audio flows keyed by (glTF path, flow name).
Holds the flow's JSON document (bank form) and the base directory its bank wavs are resolved against, so playback can build the shared AudioFlowGraph runtime on demand. Deduplicates identical identities and resolves named settings to stable FlowSettingHandle values.
Definition at line 22 of file AudioFlowStore.h.
|
default |
|
delete |
| void Engine::Assets::AudioFlowStore::clear | ( | ) |
Drop all registered flows.
|
nodiscard |
Get the registered handle for a flow identity.
|
nodiscard |
Resolve a named setting of a flow to a stable handle.
|
nodiscard |
Look up a flow's JSON + base directory.
|
staticprivate |
|
delete |
| AudioFlowHandle Engine::Assets::AudioFlowStore::registerFlow | ( | std::filesystem::path | gltfPath, |
| std::string | flowName, | ||
| std::string | flowJson, | ||
| std::string | baseDir ) |
Register a flow document under its identity.
| gltfPath | Path of the glTF asset the flow belongs to. |
| flowName | Flow identity within the asset. |
| flowJson | The flow JSON document (bank form). |
| baseDir | Directory bank wavs / clip files resolve against. |
|
inlinenodiscard |
|
private |
Definition at line 81 of file AudioFlowStore.h.
|
private |
Definition at line 80 of file AudioFlowStore.h.
Referenced by size().