Epok Engine

EPOK RUNTIME

epok::bp::api::set_audio_clip

Function · 1 overload

Function

Sets audio clip as part of compiled Blueprint execution and object interaction.

Belongs to
epok::bp::api
Header
blueprint_api.hpp
Overloads
1

Declaration

Declaration
inline void set_audio_clip(ObjectId target,uint64_t clip)

Sets audio clip as part of compiled Blueprint execution and object interaction.

ParameterTypeMeaning
targetObjectIdValue supplied for target. Keep referenced or pointed-to data valid for the complete call.
clipuint64_tValue supplied for clip. Keep referenced or pointed-to data valid for the complete call.

Returns: Nothing (void).

Example

C++ example
#include "blueprint_api.hpp"

// Assume these named values have been initialized with valid data:
// ObjectId target
// uint64_t clip

epok::bp::api::set_audio_clip(target, clip);

Why use it

The API exposes the hardware service without hiding latency or bounded memory.

Trade-offs and warnings

Treat device absence, busy state and I/O failure as expected outcomes; do not block the frame loop waiting for hardware.

Declared in runtime/blueprint_api.hpp:83

Related members