Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
EPOK RUNTIME
Method · 1 overload
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
Performs `bind local` as part of the object model module.
void bind_local()Performs `bind local` as part of the object model module.
This overload takes no parameters.
Returns: Nothing (void).
#include "object_model.hpp"
epok::AudioComponent& object = /* obtain a valid instance */;
object.bind_local();Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/object_model.hpp:732
begin_playplay_on_start policy.Methodbind_slotBind to the legacy slot's AudioSource, or to component-owned storage.Methodclass_idPerforms `class id` as part of the object model module.MethodclipPerforms `clip` as part of the object model module.MethodenabledPerforms `enabled` as part of the object model module.Methodend_playEnds play as part of the object model module.Methodentity_slotPerforms `entity slot` as part of the object model module.Methodis_playingReports whether playing as part of the object model module.Methodon_disableDeactivation and teardown stop both kinds: lifecycle.hpp::set_active stops a legacy slot's audio through the slot table, and stopping an already stopped source is a no-op, so the two paths are idempotent rather than conflicting.Methodowns_sourceTrue only for component-owned storage.MethodpitchPerforms `pitch` as part of the object model module.MethodplayStarts play as part of the object model module.Method