//! Crate-wide constants and small helpers
use crateSampleRate;
/// Maximum samples per channel in a single Opus frame at 48 kHz.
///
/// 120 ms at 48 kHz = 0.120 * 48000 = 5760 samples.
pub const MAX_FRAME_SAMPLES_48KHZ: usize = 5760;
/// Maximum packet duration in milliseconds.
pub const MAX_PACKET_DURATION_MS: usize = 120;
/// Compute the maximum samples per channel for a frame at the given `sample_rate`.
pub const