diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-11-08 02:32:45 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2022-11-08 02:32:45 -0500 |
commit | f97a6ff266881936c2885c3265ae20524d66c874 (patch) | |
tree | a980dfc6197388cf9707800206106ca823bfa4b8 /src | |
parent | 28c3ec417f6fe50ac9f4fa929d2529d56d7c371a (diff) | |
download | abaddon-portaudio-f97a6ff266881936c2885c3265ae20524d66c874.tar.gz abaddon-portaudio-f97a6ff266881936c2885c3265ae20524d66c874.zip |
fix up CI:
add libhandy as dependency
change ubuntu actions environment
update nlohmann/json to latest release
add preprocessor checks
Diffstat (limited to 'src')
-rw-r--r-- | src/audio/devices.cpp | 7 | ||||
-rw-r--r-- | src/audio/devices.hpp | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/audio/devices.cpp b/src/audio/devices.cpp index f315a17..c9636b7 100644 --- a/src/audio/devices.cpp +++ b/src/audio/devices.cpp @@ -1,5 +1,11 @@ +#ifdef WITH_VOICE + +// clang-format off + #include "devices.hpp" +// clang-format on + AudioDevices::AudioDevices() : m_playback(Gtk::ListStore::create(m_playback_columns)) { } @@ -31,3 +37,4 @@ AudioDevices::PlaybackColumns::PlaybackColumns() { add(Name); add(DeviceID); } +#endif diff --git a/src/audio/devices.hpp b/src/audio/devices.hpp index 0a88873..c11744b 100644 --- a/src/audio/devices.hpp +++ b/src/audio/devices.hpp @@ -1,9 +1,14 @@ #pragma once +#ifdef WITH_VOICE + +// clang-format off #include <gtkmm/liststore.h> #include <miniaudio.h> #include <optional> +// clang-format on + class AudioDevices { public: AudioDevices(); @@ -24,3 +29,4 @@ private: PlaybackColumns m_playback_columns; Glib::RefPtr<Gtk::ListStore> m_playback; }; +#endif |