summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-09-11 22:27:34 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-09-11 22:27:34 +0300
commit9834746e6a7e5cf04a32273155265bc3a2f57180 (patch)
tree66366fe9d2f74b09cc70bed366ad7d6c542c94ad /protocols/FacebookRM
parent9a774c4e9e76e660c14a5f725252bbc275b13906 (diff)
old good sound services became finally functions
Diffstat (limited to 'protocols/FacebookRM')
-rw-r--r--protocols/FacebookRM/src/events.cpp8
-rw-r--r--protocols/FacebookRM/src/process.cpp4
-rw-r--r--protocols/FacebookRM/src/proto.cpp12
3 files changed, 12 insertions, 12 deletions
diff --git a/protocols/FacebookRM/src/events.cpp b/protocols/FacebookRM/src/events.cpp
index f46ad30d58..13129f43f3 100644
--- a/protocols/FacebookRM/src/events.cpp
+++ b/protocols/FacebookRM/src/events.cpp
@@ -41,22 +41,22 @@ HWND FacebookProto::NotifyEvent(wchar_t* title, wchar_t* text, MCONTACT contact,
case EVENT_NOTIFICATION:
mir_snprintf(name, "%s_%s", m_szModuleName, "Notification");
- SkinPlaySound("Notification");
+ Skin_PlaySound("Notification");
break;
case EVENT_OTHER:
mir_snprintf(name, "%s_%s", m_szModuleName, "Other");
- SkinPlaySound("OtherEvent");
+ Skin_PlaySound("OtherEvent");
break;
case EVENT_FRIENDSHIP:
mir_snprintf(name, "%s_%s", m_szModuleName, "Friendship");
- SkinPlaySound("Friendship");
+ Skin_PlaySound("Friendship");
break;
case EVENT_TICKER:
mir_snprintf(name, "%s_%s", m_szModuleName, "Ticker");
- SkinPlaySound("Ticker");
+ Skin_PlaySound("Ticker");
break;
case EVENT_ON_THIS_DAY:
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp
index 2a60d15060..297576d219 100644
--- a/protocols/FacebookRM/src/process.cpp
+++ b/protocols/FacebookRM/src/process.cpp
@@ -695,7 +695,7 @@ void FacebookProto::ProcessMemories(void *p)
parseFeeds(html, news, new_time, true);
if (!news.empty()) {
- SkinPlaySound("Memories");
+ Skin_PlaySound("Memories");
}
numMemories = news.size();
@@ -1176,7 +1176,7 @@ void FacebookProto::ProcessFeeds(void *p)
parseFeeds(resp.data, news, new_time, filterAds);
if (!news.empty()) {
- SkinPlaySound("NewsFeed");
+ Skin_PlaySound("NewsFeed");
}
if (manuallyTriggered) {
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index 0490710df1..27be2e50d6 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -1120,12 +1120,12 @@ void FacebookProto::InitHotkeys()
*/
void FacebookProto::InitSounds()
{
- SkinAddNewSoundExW("Notification", m_tszUserName, LPGENW("Notification"));
- SkinAddNewSoundExW("NewsFeed", m_tszUserName, LPGENW("Newsfeed event"));
- SkinAddNewSoundExW("OtherEvent", m_tszUserName, LPGENW("Other event"));
- SkinAddNewSoundExW("Friendship", m_tszUserName, LPGENW("Friendship event"));
- SkinAddNewSoundExW("Ticker", m_tszUserName, LPGENW("Ticker event"));
- SkinAddNewSoundExW("Memories", m_tszUserName, LPGENW("Memories"));
+ Skin_AddSound("Notification", m_tszUserName, LPGENW("Notification"));
+ Skin_AddSound("NewsFeed", m_tszUserName, LPGENW("Newsfeed event"));
+ Skin_AddSound("OtherEvent", m_tszUserName, LPGENW("Other event"));
+ Skin_AddSound("Friendship", m_tszUserName, LPGENW("Friendship event"));
+ Skin_AddSound("Ticker", m_tszUserName, LPGENW("Ticker event"));
+ Skin_AddSound("Memories", m_tszUserName, LPGENW("Memories"));
}
/**