mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
kodi: add patch to rename default pulse device to Bluetooth Audio
This commit is contained in:
parent
2f263c4c89
commit
7e1c8e7b12
@ -0,0 +1,32 @@
|
|||||||
|
From b70f963a0963735e627b12cf361e4e30d6c2a799 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Lukas Rusak <lorusak@gmail.com>
|
||||||
|
Date: Tue, 26 Jan 2016 08:31:52 +0100
|
||||||
|
Subject: [PATCH] change pulseaudio default device name to Bluetooth Audio
|
||||||
|
|
||||||
|
---
|
||||||
|
xbmc/cores/AudioEngine/Sinks/AESinkPULSE.cpp | 4 +++-
|
||||||
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/xbmc/cores/AudioEngine/Sinks/AESinkPULSE.cpp b/xbmc/cores/AudioEngine/Sinks/AESinkPULSE.cpp
|
||||||
|
index 67b7b90..8537163 100644
|
||||||
|
--- a/xbmc/cores/AudioEngine/Sinks/AESinkPULSE.cpp
|
||||||
|
+++ b/xbmc/cores/AudioEngine/Sinks/AESinkPULSE.cpp
|
||||||
|
@@ -362,12 +362,14 @@ static void SinkInfoRequestCallback(pa_context *c, const pa_sink_info *i, int eo
|
||||||
|
CAEDeviceInfo defaultDevice;
|
||||||
|
defaultDevice.m_deviceName = std::string("Default");
|
||||||
|
defaultDevice.m_displayName = std::string("Default");
|
||||||
|
- defaultDevice.m_displayNameExtra = std::string("Default Output Device (PULSEAUDIO)");
|
||||||
|
+ defaultDevice.m_displayNameExtra = std::string("Bluetooth Audio (PULSEAUDIO)");
|
||||||
|
defaultDevice.m_dataFormats.insert(defaultDevice.m_dataFormats.end(), defaultDataFormats, defaultDataFormats + ARRAY_SIZE(defaultDataFormats));
|
||||||
|
defaultDevice.m_channels = CAEChannelInfo(AE_CH_LAYOUT_2_0);
|
||||||
|
defaultDevice.m_sampleRates.assign(defaultSampleRates, defaultSampleRates + ARRAY_SIZE(defaultSampleRates));
|
||||||
|
defaultDevice.m_deviceType = AE_DEVTYPE_PCM;
|
||||||
|
sinkStruct->list->push_back(defaultDevice);
|
||||||
|
+ // OE only wants the default device - so we are done here
|
||||||
|
+ return;
|
||||||
|
}
|
||||||
|
if (i && i->name)
|
||||||
|
{
|
||||||
|
--
|
||||||
|
1.9.3
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user