diff options
author | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-03-10 19:15:03 -0500 |
---|---|---|
committer | ouwou <26526779+ouwou@users.noreply.github.com> | 2023-03-10 19:15:03 -0500 |
commit | 3f4ccefc78e31a306c48149253c592be3e663a26 (patch) | |
tree | d6ef42091f239a9096ebee25ae9f379d751aa269 /src/notifications/notifier_gio.cpp | |
parent | e3f6a1dcbd75b511397f7ba64f81ba37db4a1cfc (diff) | |
download | abaddon-portaudio-3f4ccefc78e31a306c48149253c592be3e663a26.tar.gz abaddon-portaudio-3f4ccefc78e31a306c48149253c592be3e663a26.zip |
refactor notification sounds cmake option
Diffstat (limited to 'src/notifications/notifier_gio.cpp')
-rw-r--r-- | src/notifications/notifier_gio.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/notifications/notifier_gio.cpp b/src/notifications/notifier_gio.cpp index f09b002..e5335d0 100644 --- a/src/notifications/notifier_gio.cpp +++ b/src/notifications/notifier_gio.cpp @@ -5,7 +5,7 @@ #include <miniaudio.h> Notifier::Notifier() { -#ifdef WITH_MINIAUDIO +#ifdef ENABLE_NOTIFICATION_SOUNDS if (ma_engine_init(nullptr, &m_engine) != MA_SUCCESS) { printf("failed to initialize miniaudio engine\n"); } @@ -13,7 +13,7 @@ Notifier::Notifier() { } Notifier::~Notifier() { -#ifdef WITH_MINIAUDIO +#ifdef ENABLE_NOTIFICATION_SOUNDS ma_engine_uninit(&m_engine); #endif } @@ -34,7 +34,7 @@ void Notifier::Notify(const Glib::ustring &title, const Glib::ustring &text, con g_object_unref(icon); g_object_unref(file); -#ifdef WITH_MINIAUDIO +#ifdef ENABLE_NOTIFICATION_SOUNDS ma_engine_play_sound(&m_engine, Abaddon::Get().GetResPath("/sound/message.mp3").c_str(), nullptr); #endif } |