Skip to main content

resample_to_uac_packet

Function resample_to_uac_packet 

Source
pub fn resample_to_uac_packet(
    src_interleaved: &[i16],
    src_channels: u8,
    dst_frames: usize,
    dst_channels: u8,
    out_bytes: &mut [u8],
) -> usize
Expand description

インターリーブ配置された入力 i16 サンプル列(src_channels: 1 または 2)を dst_frames 個の dst_channels 16-bit Little-Endian PCM バイト列へ変換・リサンプルする。 書き込んだバイト数を返す。