diff options
| author | Yuval Adam <_@yuv.al> | 2024-06-04 20:59:56 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2024-06-04 20:59:56 +0200 |
| commit | f7fe187c464525339c58996ec86b4faea4306789 (patch) | |
| tree | 63e3c7dfbbd37d1dd7da84e8c58f70e2dbab101d /src/audio/mod.rs | |
| parent | 355743d349d8f63a5d98246c0f0265812fbb2482 (diff) | |
Use unbounded mpsc channel
Diffstat (limited to 'src/audio/mod.rs')
| -rw-r--r-- | src/audio/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/audio/mod.rs b/src/audio/mod.rs index 81cdc70..6d2dda3 100644 --- a/src/audio/mod.rs +++ b/src/audio/mod.rs @@ -15,7 +15,7 @@ pub fn get_backend() -> AudioBackends { } impl AudioBackends { - pub async fn play(&self, url: &str, tx: mpsc::Sender<String>) { + pub async fn play(&self, url: &str, tx: mpsc::UnboundedSender<String>) { match self { AudioBackends::Mpv(m) => m.play(url, tx).await, AudioBackends::Rodio(r) => r.play(url, tx).await, |
