Why use it
The API exposes the hardware service without hiding latency or bounded memory.
EPOK RUNTIME
Method · 1 overload
Sets enabled as part of the object model module.
void set_enabled(bool value)Sets enabled as part of the object model module.
| Parameter | Type | Meaning |
|---|---|---|
value | bool | Value supplied for value. Keep referenced or pointed-to data valid for the complete call. |
Returns: Nothing (void).
#include "object_model.hpp"
// Assume these named values have been initialized with valid data:
// bool value
epok::AudioComponent& object = /* obtain a valid instance */;
object.set_enabled(value);The API exposes the hardware service without hiding latency or bounded memory.
Treat device absence, busy state and I/O failure as expected outcomes; do not block the frame loop waiting for hardware.
Declared in runtime/object_model.hpp:615
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