From 0a361bfb3b48c50904940f785ac60f39ffb243e8 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Sun, 10 Nov 2024 01:23:39 +0100 Subject: [PATCH] BackendSettingsPage: Add HAVE_ALSA --- src/settings/backendsettingspage.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/settings/backendsettingspage.cpp b/src/settings/backendsettingspage.cpp index 0eeaf696e2..5b46a28d90 100644 --- a/src/settings/backendsettingspage.cpp +++ b/src/settings/backendsettingspage.cpp @@ -62,12 +62,14 @@ using namespace BackendSettings; namespace { constexpr char kOutputAutomaticallySelect[] = "Automatically select"; constexpr char kOutputCustom[] = "Custom"; -constexpr char kALSAHW[] = "hw:"; -constexpr char kALSAPlugHW[] = "plughw:"; static const QRegularExpression kRegex_ALSA_HW(u"^hw:.*"_s); static const QRegularExpression kRegex_ALSA_PlugHW(u"^plughw:.*"_s); +#ifdef HAVE_ALSA +constexpr char kALSAHW[] = "hw:"; +constexpr char kALSAPlugHW[] = "plughw:"; static const QRegularExpression kRegex_ALSA_PCM_Card(u"^.*:.*CARD=.*"_s); static const QRegularExpression kRegex_ALSA_PCM_Dev(u"^.*:.*DEV=.*"_s); +#endif } // namespace BackendSettingsPage::BackendSettingsPage(SettingsDialog *dialog, const SharedPtr player, const SharedPtr device_finders, QWidget *parent)