Skip to main content

Module buffer

Module buffer 

Source
Expand description

Planar f32 audio buffers and the MediaBuffer enum reserved for v2 video.

Structs§

AudioBuffer
Planar f32 audio: one Vec<f32> per channel, all the same length.
BufferInfo

Enums§

MediaBuffer
The unit of data that flows through a pipeline. v1 only has Audio; Video and Subtitle are additive in v2 (see the PRD’s v2 video path).

Functions§

db_to_lin
Convert decibels to linear gain.
lin_to_db
Convert linear gain to decibels (floored at -240 dB).