Epok Engine

EPOK RUNTIME

epok::audio_keyoff

Function · 1 overload

Function

Performs `audio keyoff` as part of SPU sound playback and voice ownership.

Belongs to
epok
Header
audio.hpp
Overloads
1

Declaration

Declaration
inline void audio_keyoff(int voice)

Performs `audio keyoff` as part of SPU sound playback and voice ownership.

ParameterTypeMeaning
voiceintValue supplied for voice. Keep referenced or pointed-to data valid for the complete call.

Returns: Nothing (void).

Example

C++ example
#include "audio.hpp"

// Assume these named values have been initialized with valid data:
// int voice

epok::audio_keyoff(voice);

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/audio.hpp:63

Related members