From 3f4ccefc78e31a306c48149253c592be3e663a26 Mon Sep 17 00:00:00 2001 From: ouwou <26526779+ouwou@users.noreply.github.com> Date: Fri, 10 Mar 2023 19:15:03 -0500 Subject: refactor notification sounds cmake option --- src/notifications/notifier_gio.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/notifications/notifier_gio.cpp') 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 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 } -- cgit v1.2.3