Epok Engine

EPOK RUNTIME

epok::AudioComponent::play_on_start

Method · 1 overload

Method

Starts on start as part of the object model module.

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

Declaration

const
Declaration
bool play_on_start() const

Starts on start as part of the object model module.

This overload takes no parameters.

Returns: bool. Check the value before continuing when it represents success, availability or a resource handle.

Example

C++ example
#include "object_model.hpp"

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

auto result = object.play_on_start();

Why use it

The method is `const`, so it does not mutate the object through this API surface. The boolean result makes success, availability or state explicit without exceptions. The API exposes the hardware service without hiding latency or bounded memory.

Trade-offs and warnings

Check the return value; `false` is part of normal control flow for many PSX resource operations. 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:624

Related members