mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-12-05 02:06:57 +00:00
31 lines
1.4 KiB
Diff
31 lines
1.4 KiB
Diff
From cd60daafb0c6b1e1de94dbc944bb247a8f810b50 Mon Sep 17 00:00:00 2001
|
|
From: fritsch <peter.fruehberger@gmail.com>
|
|
Date: Fri, 29 Jan 2016 16:32:06 +0100
|
|
Subject: [PATCH] [PATCH] change pulseaudio default device name to Bluetooth
|
|
Audio
|
|
|
|
---
|
|
xbmc/cores/AudioEngine/Sinks/AESinkPULSE.cpp | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
--- a/xbmc/cores/AudioEngine/Sinks/AESinkPULSE.cpp
|
|
+++ b/xbmc/cores/AudioEngine/Sinks/AESinkPULSE.cpp
|
|
@@ -491,7 +491,7 @@ static void SinkInfoRequestCallback(pa_c
|
|
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.begin(), defaultDataFormats.end());
|
|
defaultDevice.m_channels = CAEChannelInfo(AE_CH_LAYOUT_2_0);
|
|
@@ -499,6 +499,8 @@ static void SinkInfoRequestCallback(pa_c
|
|
defaultDevice.m_deviceType = AE_DEVTYPE_PCM;
|
|
defaultDevice.m_wantsIECPassthrough = true;
|
|
sinkStruct->list->push_back(defaultDevice);
|
|
+ // LE only wants the default device - so we are done here
|
|
+ return;
|
|
}
|
|
if (i && i->name)
|
|
{
|