diff --git a/src/Notifications/EventsPush.cpp b/src/Notifications/EventsPush.cpp index 8580ca8..dde1caa 100644 --- a/src/Notifications/EventsPush.cpp +++ b/src/Notifications/EventsPush.cpp @@ -710,8 +710,8 @@ bool EventsPush::init(sio::message::ptr const& data) { nullptr )); - /*if (Mod::get()->getSettingValue("sfx") && type != 3 && type != 4) FMODAudioEngine::sharedEngine()->playEffect("crystal01.ogg"); - if (Mod::get()->getSettingValue("sfx") && (type == 3 || type == 4)) FMODAudioEngine::sharedEngine()->playEffect("reward01.ogg");*/ + if (Mod::get()->getSettingValue("sfx") && type != 3 && type != 4) FMODAudioEngine::sharedEngine()->playEffect("crystal01.ogg"); + if (Mod::get()->getSettingValue("sfx") && (type == 3 || type == 4)) FMODAudioEngine::sharedEngine()->playEffect("reward01.ogg"); return true; } diff --git a/src/Secret/VideoPlayer.cpp b/src/Secret/VideoPlayer.cpp index 6b3b582..435d188 100644 --- a/src/Secret/VideoPlayer.cpp +++ b/src/Secret/VideoPlayer.cpp @@ -117,7 +117,7 @@ namespace videoplayer { }; void VideoPlayer::initAudio() { - /*FMODAudioEngine* engine = FMODAudioEngine::sharedEngine(); + FMODAudioEngine* engine = FMODAudioEngine::sharedEngine(); int sampleRate = plm_get_samplerate(m_stream); @@ -142,7 +142,7 @@ namespace videoplayer { m_channel->setVolume(m_volume); m_channel->setUserData(this); - if (m_loop) m_channel->setCallback(&VideoPlayer::audioCallback);*/ + if (m_loop) m_channel->setCallback(&VideoPlayer::audioCallback); } FMOD_RESULT F_CALLBACK videoplayer::VideoPlayer::audioCallback(FMOD_CHANNELCONTROL *chanControl, FMOD_CHANNELCONTROL_TYPE controlType, FMOD_CHANNELCONTROL_CALLBACK_TYPE callbackType, void *commandData1, void *commandData2) {