Epok Engine

EPOK RUNTIME

epok::audio_source_retained

Variable

Variable

---- service quarantine ------------------------------------------------------------ Some services retain the address of a component's storage across asynchronous callbacks.

Belongs to
epok
Header
object_model.hpp

Declaration

Declaration
bool (*audio_source_retained)(const AudioSource *)

---- service quarantine ------------------------------------------------------------ Some services retain the address of a component's storage across asynchronous callbacks.

Type
bool (*)(const AudioSource *)
Storage
Namespace scope

Example

C++ example
#include "object_model.hpp"

auto callback = epok::audio_source_retained;

// Assign a function with the exact declared signature:
// epok::audio_source_retained = &myCallback;

When it helps

Use this member when you need direct access to the state represented by its declared type.

Trade-offs and warnings

Direct field access has no validation step. Keep the owning object alive, respect units and ranges, and do not mutate state while hardware or another subsystem is consuming it.

Declared in runtime/object_model.hpp:249