MCPcopy Create free account
hub / github.com/RustOtomeLab/RustEng / AudioSetup

Class AudioSetup

src/media/video_player.rs:350–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350struct AudioSetup {
351 stream_index: usize,
352 decoder: Mutex<ffmpeg::decoder::Audio>,
353 resampler: Mutex<ResamplingContext>,
354 target_rate: u32,
355 target_channels: u16,
356 sink: Sink,
357 _stream: OutputStream,
358}
359
360fn setup_audio(ictx: &ffmpeg::format::context::Input) -> Result<Option<AudioSetup>, MediaError> {
361 let audio_stream = match ictx.streams().best(MediaType::Audio) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected