(bytes: &[u8], _content_type: &str)
| 65 | } |
| 66 | } |
| 67 | |
| 68 | fn probe_duration(bytes: &Bytes, _content_type: &str) -> Option<Duration> { |
| 69 | use rodio::Source; |
| 70 | |
| 71 | let cursor = Cursor::new(bytes.clone()); |
| 72 | let source = rodio::Decoder::try_from(cursor).ok()?; |
| 73 | source.total_duration() |
| 74 | } |
| 75 | |
| 76 | fn ensure_backend(&mut self) -> bool { |
nothing calls this directly
no outgoing calls
no test coverage detected