Epok Engine

EPOK RUNTIME

epok::native_music::View::commands

Method · 1 overload

Method

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

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

Declaration

const
Declaration
const Command* commands()const

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

This overload takes no parameters.

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

Example

C++ example
#include "native_music_data.hpp"

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

auto result = object.commands();

Why use it

The method is `const`, so it does not mutate the object through this API surface. 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/native_music_data.hpp:17

Related members