mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
31 lines
1.3 KiB
Diff
31 lines
1.3 KiB
Diff
From b87d18c6513cebc31118ffb447e2b7ae9255e6bd Mon Sep 17 00:00:00 2001
|
|
From: awiouy <awiouy@gmail.com>
|
|
Date: Wed, 7 Nov 2018 07:51:46 +0100
|
|
Subject: [PATCH] libreelec: pulseaudio sink
|
|
|
|
---
|
|
playback/src/audio_backend/pulseaudio.rs | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/playback/src/audio_backend/pulseaudio.rs b/playback/src/audio_backend/pulseaudio.rs
|
|
index 88f6280..4e7186b 100644
|
|
--- a/playback/src/audio_backend/pulseaudio.rs
|
|
+++ b/playback/src/audio_backend/pulseaudio.rs
|
|
@@ -76,6 +76,7 @@ impl Open for PulseAudioSink {
|
|
|
|
impl Sink for PulseAudioSink {
|
|
fn start(&mut self) -> io::Result<()> {
|
|
+ let sink = CString::new("librespot_sink").unwrap();
|
|
if self.s == null_mut() {
|
|
self.s = call_pulseaudio(
|
|
|err| unsafe {
|
|
@@ -83,7 +84,7 @@ impl Sink for PulseAudioSink {
|
|
null(), // Use the default server.
|
|
self.name.as_ptr(), // Our application's name.
|
|
PA_STREAM_PLAYBACK,
|
|
- null(), // Use the default device.
|
|
+ sink.as_ptr(), // Our sink.
|
|
self.desc.as_ptr(), // desc of our stream.
|
|
&self.ss, // Our sample format.
|
|
null(), // Use default channel map
|