parent
8ca87cf8d9
commit
c97cf26192
@ -1,12 +0,0 @@
|
|||||||
diff -up phonon/xine/backend.cpp.pulseaudio phonon/xine/backend.cpp
|
|
||||||
--- phonon/xine/backend.cpp.pulseaudio 2009-10-03 14:00:19.000000000 -0500
|
|
||||||
+++ phonon/xine/backend.cpp 2009-10-19 12:23:17.768923476 -0500
|
|
||||||
@@ -649,7 +649,7 @@ void Backend::checkAudioOutputs()
|
|
||||||
"in KDE2 and KDE3. Its use is discouraged.</p></html>"),
|
|
||||||
/*icon name */"audio-backend-arts", outputPlugins[i]);
|
|
||||||
} else if (0 == strcmp(outputPlugins[i], "pulseaudio")) {
|
|
||||||
- addAudioOutput(nextIndex++, 10, tr("PulseAudio"),
|
|
||||||
+ addAudioOutput(nextIndex++, 2000, tr("PulseAudio"),
|
|
||||||
xine_get_audio_driver_plugin_description(m_xine, outputPlugins[i]),
|
|
||||||
/*icon name */"audio-backend-pulseaudio", outputPlugins[i]);
|
|
||||||
} else if (0 == strcmp(outputPlugins[i], "esd")) {
|
|
@ -1,43 +0,0 @@
|
|||||||
diff -ur phonon-4.3.80/phonon/globalconfig.cpp phonon-4.3.80-pulseaudio-device-priorities/phonon/globalconfig.cpp
|
|
||||||
--- phonon-4.3.80/phonon/globalconfig.cpp 2009-12-03 20:29:35.000000000 +0100
|
|
||||||
+++ phonon-4.3.80-pulseaudio-device-priorities/phonon/globalconfig.cpp 2010-01-22 15:57:25.000000000 +0100
|
|
||||||
@@ -33,6 +33,7 @@
|
|
||||||
#include "pulsesupport_p.h"
|
|
||||||
|
|
||||||
#include <QtCore/QList>
|
|
||||||
+#include <QtCore/QHash>
|
|
||||||
#include <QtCore/QVariant>
|
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
|
||||||
@@ -314,6 +315,15 @@
|
|
||||||
| ((override & HideUnavailableDevices) ? FilterUnavailableDevices : 0)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
+ // make PulseAudio the global default (assume it is already default in this list)
|
|
||||||
+ if (!list.isEmpty()) {
|
|
||||||
+ int firstIndex = list.first();
|
|
||||||
+ if (backendIface->objectDescriptionProperties(Phonon::AudioOutputDeviceType,
|
|
||||||
+ firstIndex)["icon"].toString() == "audio-backend-pulseaudio") {
|
|
||||||
+ list.removeFirst();
|
|
||||||
+ defaultList.prepend(firstIndex);
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
defaultList += list;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -394,6 +404,15 @@
|
|
||||||
| ((override & HideUnavailableDevices) ? FilterUnavailableDevices : 0)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
+ // make PulseAudio the global default (assume it is already default in this list)
|
|
||||||
+ if (!list.isEmpty()) {
|
|
||||||
+ int firstIndex = list.first();
|
|
||||||
+ if (backendIface->objectDescriptionProperties(Phonon::AudioCaptureDeviceType,
|
|
||||||
+ firstIndex)["icon"].toString() == "audio-backend-pulseaudio") {
|
|
||||||
+ list.removeFirst();
|
|
||||||
+ defaultList.prepend(firstIndex);
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
defaultList += list;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in new issue