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

Method play_now

src/store/player_store.rs:258–263  ·  view source on GitHub ↗
(&mut self, song: Song)

Source from the content-addressed store, hash-verified

256
257 #[tracing::instrument(level = "debug", skip(self, song))]
258 pub fn play_now(&mut self, song: Song) {
259 self.set_state(PlayerState::Playing);
260 self.insert_song_at_index(song, self.data.queue.current_index + 1, true);
261 self.data.queue.current_index += 1;
262 self.update_current_song(true);
263 }
264
265 #[tracing::instrument(level = "debug", skip(self, songs))]
266 pub fn play_now_multiple(&mut self, songs: Vec<Song>) {

Callers 1

play_now_multipleMethod · 0.45

Calls 3

set_stateMethod · 0.80
insert_song_at_indexMethod · 0.80
update_current_songMethod · 0.80

Tested by

no test coverage detected