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.
Starts play as part of the object model module.
void play()Starts play 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.play();Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in runtime/object_model.hpp:715
begin_playplay_on_start policy.Methodbind_localPerforms `bind local` as part of the object model module.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.Method