Epok Engine

EPOK RUNTIME

epok::AudioComponent::on_disable

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.

Method

Deactivation 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.

Belongs to
epok::AudioComponent
Header
object_model.hpp
Overloads
1

Declaration

Declaration
void on_disable() override

Deactivation 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.

This overload takes no parameters.

Returns: Nothing (void).

Example sketch

C++ example
#include "object_model.hpp"

epok::AudioComponent& object = /* obtain a valid instance */;

object.on_disable();

Trade-offs and warnings

Consult the linked header for this operation’s ownership, lifetime and failure behavior.

Declared in runtime/object_model.hpp:753

Related members