fn init(&mut self, stream_id: u32, encinfo: EncodeParameters) -> EncoderResult<NAStreamRef> {
let stype = match encinfo.format {
NACodecTypeInfo::Audio(_) => StreamType::Audio,
fn init(&mut self, stream_id: u32, encinfo: EncodeParameters) -> EncoderResult<NAStreamRef> {
let stype = match encinfo.format {
NACodecTypeInfo::Audio(_) => StreamType::Audio,