Epok Engine

EPOK RUNTIME

epok::sequence_is_playing

Function · 1 overload

Function

Performs `sequence is playing` as part of the sequence service module.

Belongs to
epok
Header
sequence_service.hpp
Overloads
1

Declaration

Declaration
inline bool sequence_is_playing(const AudioSource* source)

Performs `sequence is playing` as part of the sequence service module.

ParameterTypeMeaning
sourceconst AudioSource *Value supplied for source. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "sequence_service.hpp"

// Assume these named values have been initialized with valid data:
// const AudioSource * source

auto result = epok::sequence_is_playing(source);

Why use it

The boolean result makes success, availability or state explicit without exceptions.

Trade-offs and warnings

Check the return value; `false` is part of normal control flow for many PSX resource operations. Pointer/reference arguments are borrowed unless the source contract says otherwise; keep them valid for the complete operation and never assume null is accepted.

Declared in runtime/sequence_service.hpp:231

Related members