(&self, request: AudioPlaybackRequest<'_>, source: Arc<str>)
| 267 | |
| 268 | Self::new_with_player_factory(static_audio_lookup, BarkPlayer::new) |
| 269 | } |
| 270 | |
| 271 | fn new_with_player_factory<F>( |
| 272 | static_audio_lookup: Option<fn(u64) -> &'static [u8]>, |
| 273 | player_factory: F, |
| 274 | ) -> Result<Self, String> |
| 275 | where |
| 276 | F: FnOnce(Option<fn(u64) -> &'static [u8]>) -> Result<BarkPlayer, String> + Send + 'static, |
| 277 | { |
| 278 | let (tx, rx) = crossbeam_channel::bounded::<AudioCommand>(Self::COMMAND_QUEUE_CAPACITY); |
no outgoing calls
no test coverage detected