Epok Engine

EPOK RUNTIME

epok::native_music::u32

Function · 1 overload

Function

Performs `u32` as part of XA music streaming and playback state.

Belongs to
epok::native_music
Header
native_music_data.hpp
Overloads
1

Declaration

Declaration
inline uint32_t u32(const uint8_t* p)

Performs `u32` as part of XA music streaming and playback state.

ParameterTypeMeaning
pconst uint8_t *Value supplied for p. Keep referenced or pointed-to data valid for the complete call.

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

Example

C++ example
#include "native_music_data.hpp"

// Assume these named values have been initialized with valid data:
// const uint8_t * p

auto result = epok::native_music::u32(p);

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. 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/native_music_data.hpp:12

Related members