Skip to content

Commit

Permalink
BackendSettingsPage: Add HAVE_ALSA
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaski committed Nov 10, 2024
1 parent f9f4745 commit 0a361bf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/settings/backendsettingspage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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> player, const SharedPtr<DeviceFinders> device_finders, QWidget *parent)
Expand Down

0 comments on commit 0a361bf

Please sign in to comment.