summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-09-11 22:27:34 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-09-12 12:43:48 +0300
commitf2656f118f63643151e53694bd223018c29b4a55 (patch)
tree2733f155bb5fd9313ea08255209da75f738bcedf /plugins/UserInfoEx
parent69409021aced78b31da0c9f2def7332a4c4b973e (diff)
old good sound services became finally functions
Diffstat (limited to 'plugins/UserInfoEx')
-rw-r--r--plugins/UserInfoEx/src/svc_reminder.cpp26
1 files changed, 5 insertions, 21 deletions
diff --git a/plugins/UserInfoEx/src/svc_reminder.cpp b/plugins/UserInfoEx/src/svc_reminder.cpp
index ffaa8b8a0b..151b3a7bfb 100644
--- a/plugins/UserInfoEx/src/svc_reminder.cpp
+++ b/plugins/UserInfoEx/src/svc_reminder.cpp
@@ -352,11 +352,11 @@ static BYTE NotifyWithSound(const CEvent &evt)
if (evt._wDaysLeft <= min(db_get_b(NULL, MODNAME, SET_REMIND_SOUNDOFFSET, DEFVAL_REMIND_SOUNDOFFSET), gRemindOpts.wDaysEarlier)) {
switch (evt._eType) {
case CEvent::BIRTHDAY:
- SkinPlaySound(evt._wDaysLeft == 0 ? SOUND_BIRTHDAY_TODAY : SOUND_BIRTHDAY_SOON);
+ Skin_PlaySound(evt._wDaysLeft == 0 ? SOUND_BIRTHDAY_TODAY : SOUND_BIRTHDAY_SOON);
return 0;
case CEvent::ANNIVERSARY:
- SkinPlaySound(SOUND_ANNIVERSARY);
+ Skin_PlaySound(SOUND_ANNIVERSARY);
return 0;
}
}
@@ -893,24 +893,9 @@ void SvcReminderOnModulesLoaded(void)
void SvcReminderLoadModule(void)
{
// init sounds
- SKINSOUNDDESCEX ssd = { 0 };
- ssd.cbSize = sizeof(ssd);
- ssd.pszSection = MODNAME;
-
- ssd.pszName = SOUND_BIRTHDAY_TODAY;
- ssd.pszDescription = LPGEN("Birthday reminder");
- ssd.pszDefaultFile = "Sounds\\BirthDay.wav";
- Skin_AddSound(&ssd);
-
- ssd.pszName = SOUND_BIRTHDAY_SOON;
- ssd.pszDescription = LPGEN("Birthday reminder: it's coming");
- ssd.pszDefaultFile = "Sounds\\BirthDayComing.wav";
- Skin_AddSound(&ssd);
-
- ssd.pszName = SOUND_ANNIVERSARY;
- ssd.pszDescription = LPGEN("Anniversary Reminder");
- ssd.pszDefaultFile = "Sounds\\Reminder.wav";
- Skin_AddSound(&ssd);
+ Skin_AddSound(SOUND_BIRTHDAY_TODAY, LPGENW("Birthday reminder"), L"Sounds\\BirthDay.wav");
+ Skin_AddSound(SOUND_BIRTHDAY_SOON, LPGENW("Birthday reminder: it's coming"), L"Sounds\\BirthDayComing.wav");
+ Skin_AddSound(SOUND_ANNIVERSARY, LPGENW("Anniversary Reminder"), L"Sounds\\Reminder.wav");
// create service functions
CreateServiceFunction(MS_USERINFO_REMINDER_CHECK, CheckService);
@@ -926,7 +911,6 @@ void SvcReminderLoadModule(void)
if (db_get_b(NULL, MODNAME, SET_REMIND_ENABLED, DEFVAL_REMIND_ENABLED) != REMIND_OFF && ExtraIcon == INVALID_HANDLE_VALUE)
ExtraIcon = ExtraIcon_RegisterIcolib("Reminder", LPGEN("Reminder (UInfoEx)"), ICO_COMMON_ANNIVERSARY);
-
}
/**