Epok Engine

EPOK RUNTIME

epok::music_error

Function · 1 overload

Function

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

Belongs to
epok
Header
music.hpp
Overloads
1

Declaration

Declaration
inline void music_error(uint32_t code)

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

ParameterTypeMeaning
codeuint32_tValue supplied for code. Keep referenced or pointed-to data valid for the complete call.

Returns: Nothing (void).

Example

C++ example
#include "music.hpp"

// Assume these named values have been initialized with valid data:
// uint32_t code

epok::music_error(code);

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/music.hpp:180

Related members