Skip to content

ludus::audio::BatchResult

Ludus Wiki · API overview · Browse API

Struct

Result of submitting a batch: the aggregate acceptance status plus the voice handles assigned to each Play record in submission order.
A rejected batch yields no handles and mutates no accounting.

Declared in modules/audio/include/ludus/audio/audio_system.h

#include <ludus/audio/audio_system.h>
struct ludus::audio::BatchResult final

Fields

Result

Status ludus::audio::BatchResult::Result = Status::InvalidArgument

Related types: Status

Declared in modules/audio/include/ludus/audio/audio_system.h

Voices

std::span<const VoiceHandle> ludus::audio::BatchResult::Voices
Filled only on Status::Ok: one handle per Play command, in the order the Play commands appeared in the batch.
Non-Play commands contribute no entry.

Related types: VoiceHandle

Declared in modules/audio/include/ludus/audio/audio_system.h