| 32 | _device_sink: rodio::MixerDeviceSink, |
| 33 | } |
| 34 | |
| 35 | pub struct AudioPlayer { |
| 36 | audio_bytes: Bytes, |
| 37 | content_type: String, |
| 38 | playback_state: PlaybackState, |
| 39 | volume: f32, |
| 40 | muted: bool, |
| 41 | current_position: Duration, |
| 42 | total_duration: Option<Duration>, |
| 43 | focus_handle: FocusHandle, |
| 44 | backend: Option<Arc<Mutex<AudioBackend>>>, |
| 45 | progress_bounds: Bounds<Pixels>, |
| 46 | error_message: Option<String>, |
| 47 | } |
| 48 | |
| 49 | impl AudioPlayer { |
nothing calls this directly
no outgoing calls
no test coverage detected