Skip to content

Commit

Permalink
forgot to add setter to runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Enn3Developer committed Feb 4, 2025
1 parent be62cb6 commit 47ace66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion n_player/src/runner.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use flume::Receiver;
use n_audio::queue::QueuePlayer;
use n_audio::queue::{LoopStatus, QueuePlayer};
use n_audio::TrackTime;
use std::path::PathBuf;
use std::sync::Arc;
Expand Down Expand Up @@ -177,6 +177,10 @@ impl Runner {
self.player.set_path(path)
}

pub fn set_loop_status(&mut self, loop_status: LoopStatus) {
self.player.set_loop_status(loop_status)
}

pub async fn clear(&mut self) {
self.player.clear().await
}
Expand Down

0 comments on commit 47ace66

Please sign in to comment.