![]() |
vkmEngine 1.0.0
A C++ game engine · vkmengine.com
|
A clip's interleaved PCM, shared with every voice playing it. More...
#include <audio_clip_asset.h>
Public Member Functions | |
| ClipSamples (std::vector< int16_t > samples) | |
Take samples as a clip's buffer, shared from vkm_core. | |
A clip's interleaved PCM, shared with every voice playing it.
Refcounted so a voice on the audio thread outlives a scene load freeing the asset (see AudioDevice). The filling constructor lives in vkm_core: the control block carries the code that frees it, and a gameplay module's code may be unmapped by a hot reload before the last reference drops.
Immutable: nothing may edit a clip's samples out from under a voice.
|
explicit |
Take samples as a clip's buffer, shared from vkm_core.
| samples | Interleaved PCM, moved in. |