Expand description
Crate-wide constants and small helpers
Constants§
- MAX_
FRAME_ SAMPLES_ 48KHZ - Maximum samples per channel in a single Opus frame at 48 kHz.
- MAX_
PACKET_ DURATION_ MS - Maximum packet duration in milliseconds.
Functions§
- is_
frame_ size_ 2_ 5ms_ aligned - Returns
truewhenframe_sizeis a multiple of 2.5 ms atsample_rate. - max_
frame_ samples_ for - Compute the maximum samples per channel for a frame at the given
sample_rate. - samples_
per_ 2_ 5ms - Number of samples per channel in a 2.5 ms frame at the given
sample_rate.