CmdAudioSourceUpsert
Upserts an audio source (Create or Patch).
Arguments
Accepts one of:
CmdAudioSourceCreateArgsCmdAudioSourceUpdateArgs
Key fields include:
sourceId(required)- Create:
realmId,modelId,position,velocity,orientation,gain,pitch,spatial - Patch: optional fields for
realmId,modelId,position,velocity,orientation,gain,pitch,spatial
Notes
- If the runtime audio backend is unavailable, commands fail deterministically.
resourceIdplayback binding is configured byCmdAudioSourceTransport(action = "play").- Decode/stream readiness is asynchronous and reported via
SystemEvent::AudioReadyandSystemEvent::AudioStreamProgress. realmId/modelIdreferences are late-bound and can be resolved after upsert.
Response
Returns { success, message }.
On failure, the core also emits SystemEvent::Error (scope="command").
Documentation Vulfram Core