| 348 | } |
| 349 | |
| 350 | struct 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 | |
| 360 | fn setup_audio(ictx: &ffmpeg::format::context::Input) -> Result<Option<AudioSetup>, MediaError> { |
| 361 | let audio_stream = match ictx.streams().best(MediaType::Audio) { |
nothing calls this directly
no outgoing calls
no test coverage detected