From 355743d349d8f63a5d98246c0f0265812fbb2482 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Tue, 4 Jun 2024 20:50:46 +0200 Subject: Initial spinner mpsc --- src/audio/mpv.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/audio/mpv.rs') diff --git a/src/audio/mpv.rs b/src/audio/mpv.rs index fde2711..06d3630 100644 --- a/src/audio/mpv.rs +++ b/src/audio/mpv.rs @@ -1,9 +1,10 @@ use std::process::Command; +use tokio::sync::mpsc; pub struct Mpv {} impl Mpv { - pub async fn play(&self, url: &str) { + pub async fn play(&self, url: &str, _tx: mpsc::Sender) { Command::new("mpv") .args([url]) .output() -- cgit v1.3.1