Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

run cargo fmt

+3 -1
+3 -1
crates/airplay/src/rtp.rs
··· 189 189 /// Microseconds until the current `frames_sent` deadline (i.e. when `rtptime` plays). 190 190 /// Returns 0 if we're already past the deadline. 191 191 pub fn us_until_next_frame(&self) -> u64 { 192 - let Some(start) = self.stream_start else { return 0 }; 192 + let Some(start) = self.stream_start else { 193 + return 0; 194 + }; 193 195 let deadline = start + Duration::from_micros(self.frames_sent * FRAME_DURATION_US); 194 196 let now = Instant::now(); 195 197 if deadline > now {