MCPcopy Create free account
hub / github.com/Moosync/Moosync / next_song

Method next_song

src/store/player_store.rs:474–480  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

472
473 #[tracing::instrument(level = "debug", skip(self))]
474 pub fn next_song(&mut self) {
475 self.data.queue.current_index += 1;
476 if self.data.queue.current_index >= self.data.queue.song_queue.len() {
477 self.data.queue.current_index = 0;
478 }
479 self.update_current_song(true);
480 }
481
482 #[tracing::instrument(level = "debug", skip(self))]
483 pub fn prev_song(&mut self) {

Callers 3

AppFunction · 0.80
ControlsFunction · 0.80

Calls 1

update_current_songMethod · 0.80

Tested by

no test coverage detected