pub fn encode_serial(
cfg: &ParallelConfig,
pcm: &[f32],
frame_size: usize,
) -> Vec<Vec<u8>>Expand description
Single-threaded reference: encode every frame with one continuous encoder.
The correctness/quality anchor for encode_parallel.
ยงPanics
Panics if cfg is not a valid encoder configuration (see
crate::OpusEncoder::new) or if encoding a frame fails, which can only
happen for an invalid configuration. Validate the configuration with
OpusEncoder::new first when it comes from untrusted input.