From f2656f118f63643151e53694bd223018c29b4a55 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 11 Sep 2017 22:27:34 +0300 Subject: old good sound services became finally functions --- protocols/MRA/src/MraConstans.h | 2 +- protocols/MRA/src/MraProto.cpp | 2 +- protocols/MRA/src/Mra_functions.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/MRA/src') diff --git a/protocols/MRA/src/MraConstans.h b/protocols/MRA/src/MraConstans.h index ab2eb18dc0..406f471c27 100644 --- a/protocols/MRA/src/MraConstans.h +++ b/protocols/MRA/src/MraConstans.h @@ -119,7 +119,7 @@ static const LPSTR lpcszMailRuDomains[] = #define ADV_ICON_BLOGSTATUS_ID "ADV_ICON_BLOGSTATUS" #define ADV_ICON_BLOGSTATUS_STR LPGEN("Blog status message") -#define MRA_SOUND_NEW_EMAIL LPGEN("New E-mail available in Inbox") +#define MRA_SOUND_NEW_EMAIL LPGENW("New E-mail available in Inbox") #define MAILRU_SERVER_TIME_ZONE -180 //internal // +0300 #define MAILRU_CONTACTISTYPING_TIMEOUT 10 //internal diff --git a/protocols/MRA/src/MraProto.cpp b/protocols/MRA/src/MraProto.cpp index 4ced9192fc..ca19b6290a 100644 --- a/protocols/MRA/src/MraProto.cpp +++ b/protocols/MRA/src/MraProto.cpp @@ -47,7 +47,7 @@ CMraProto::CMraProto(const char* _module, const wchar_t* _displayName) : InitMenus(); mir_snprintf(szNewMailSound, "%s_new_email", m_szModuleName); - SkinAddNewSoundEx(szNewMailSound, m_szModuleName, MRA_SOUND_NEW_EMAIL); + Skin_AddSound(szNewMailSound, m_tszUserName, MRA_SOUND_NEW_EMAIL); HookProtoEvent(ME_CLIST_PREBUILDSTATUSMENU, &CMraProto::MraRebuildStatusMenu); diff --git a/protocols/MRA/src/Mra_functions.cpp b/protocols/MRA/src/Mra_functions.cpp index 928efc9328..bf8dea15bb 100644 --- a/protocols/MRA/src/Mra_functions.cpp +++ b/protocols/MRA/src/Mra_functions.cpp @@ -663,7 +663,7 @@ void CMraProto::MraUpdateEmailStatus(const CMStringA &pszFrom, const CMStringA & pcli->pfnAddEvent(&cle); } - SkinPlaySound(szNewMailSound); + Skin_PlaySound(szNewMailSound); if (hContact) {// update user info MraUpdateContactInfo(hContact); MraPopupShowFromContactW(hContact, MRA_POPUP_TYPE_EMAIL_STATUS, szStatusText); -- cgit v1.2.3