StormByte-Multimedia 3.3.2
C++26 multimedia processing module of the StormByte suite
Loading...
Searching...
No Matches
StormByte::Multimedia::PreviewBuffering Struct Reference

Per-player buffering policy, fixed for the engine's lifetime. More...

#include <StormByte/multimedia/simple_player.hxx>

Public Attributes

std::chrono::milliseconds Preload {750}
 Initial and reconstructed-seek coverage goal.
std::chrono::milliseconds ReadAhead {2000}
 Decoded timeline horizon, except interleave skew.
std::chrono::milliseconds AudioAhead {500}
 Maximum advance of PCM delivery to Display.
std::size_t MaxBytes = 128 * 1024 * 1024
 Pending decoded payload bytes, allocated on demand.
std::size_t MaxEvents = 256
 Maximum pending decoded units.

Detailed Description

Per-player buffering policy, fixed for the engine's lifetime.

Durations are coverage goals, not memory reservations. Byte/event limits are hard caps; playback starts with less coverage at EOF or a full queue. Individual decoded units and paused previews remain capped at 64 MiB. Display adapters must accept AudioAhead plus one decoded audio block.

Member Data Documentation

◆ AudioAhead

std::chrono::milliseconds StormByte::Multimedia::PreviewBuffering::AudioAhead {500}

Maximum advance of PCM delivery to Display.

◆ MaxBytes

std::size_t StormByte::Multimedia::PreviewBuffering::MaxBytes = 128 * 1024 * 1024

Pending decoded payload bytes, allocated on demand.

◆ MaxEvents

std::size_t StormByte::Multimedia::PreviewBuffering::MaxEvents = 256

Maximum pending decoded units.

◆ Preload

std::chrono::milliseconds StormByte::Multimedia::PreviewBuffering::Preload {750}

Initial and reconstructed-seek coverage goal.

◆ ReadAhead

std::chrono::milliseconds StormByte::Multimedia::PreviewBuffering::ReadAhead {2000}

Decoded timeline horizon, except interleave skew.


The documentation for this struct was generated from the following file: