MCPcopy Create free account
hub / github.com/bajrangCoder/setu / AudioPlayer

Class AudioPlayer

src/components/audio_player.rs:34–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32 _device_sink: rodio::MixerDeviceSink,
33}
34
35pub 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
49impl AudioPlayer {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected