Why use it
The method is `const`, so it does not mutate the object through this API surface. The API exposes the hardware service without hiding latency or bounded memory.
EPOK RUNTIME
Method · 1 overload
Performs `volume` as part of the object model module.
Fixed volume() constPerforms `volume` as part of the object model module.
This overload takes no parameters.
Returns: Fixed. Check the value before continuing when it represents success, availability or a resource handle.
#include "object_model.hpp"
epok::AudioComponent& object = /* obtain a valid instance */;
auto result = object.volume();The method is `const`, so it does not mutate the object through this API surface. 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:618
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