lc3_hr_frame_bytes

Function lc3_hr_frame_bytes 

Source
pub unsafe extern "C" fn lc3_hr_frame_bytes(
    hrmode: bool,
    dt_us: c_int,
    sr_hz: c_int,
    bitrate: c_int,
) -> c_int
Expand description

Return the size of frames, from bitrate hrmode Enable High-Resolution mode (48000 and 96000 sample rates) dt_us Frame duration in us, 2500, 5000, 7500 or 10000 sr_hz Sample rate in Hz, 8000, 16000, 24000, 32000, 48000 or 96000 bitrate Target bitrate in bit per second, 0 or INT_MAX returns respectively the minimum and maximum allowed size. return The floor size in bytes of the frames, -1 on bad parameters