diff options
Diffstat (limited to 'plugins/NotesAndReminders')
-rw-r--r-- | plugins/NotesAndReminders/src/main.cpp | 6 | ||||
-rw-r--r-- | plugins/NotesAndReminders/src/reminders.cpp | 22 |
2 files changed, 14 insertions, 14 deletions
diff --git a/plugins/NotesAndReminders/src/main.cpp b/plugins/NotesAndReminders/src/main.cpp index 8341330d1a..e006e4f13b 100644 --- a/plugins/NotesAndReminders/src/main.cpp +++ b/plugins/NotesAndReminders/src/main.cpp @@ -150,9 +150,9 @@ static void InitServices() {
// register sounds
- SkinAddNewSoundEx("AlertReminder", LPGEN("Alerts"), LPGEN("Reminder triggered"));
- SkinAddNewSoundEx("AlertReminder2", LPGEN("Alerts"), LPGEN("Reminder triggered (Alternative 1)"));
- SkinAddNewSoundEx("AlertReminder3", LPGEN("Alerts"), LPGEN("Reminder triggered (Alternative 2)"));
+ Skin_AddSound("AlertReminder", LPGENW("Alerts"), LPGENW("Reminder triggered"));
+ Skin_AddSound("AlertReminder2", LPGENW("Alerts"), LPGENW("Reminder triggered (Alternative 1)"));
+ Skin_AddSound("AlertReminder3", LPGENW("Alerts"), LPGENW("Reminder triggered (Alternative 2)"));
// register menu command services
diff --git a/plugins/NotesAndReminders/src/reminders.cpp b/plugins/NotesAndReminders/src/reminders.cpp index f999000d78..3bb2361b9a 100644 --- a/plugins/NotesAndReminders/src/reminders.cpp +++ b/plugins/NotesAndReminders/src/reminders.cpp @@ -458,10 +458,10 @@ void GetTriggerTimeString(const ULARGE_INTEGER *When, char *s, UINT strSize, BOO else mir_snprintf(s, strSize, "%d-%02d-%02d %02d:%02d", tm.wYear, tm.wMonth, tm.wDay, tm.wHour, tm.wMinute);
}
-static void SkinPlaySoundPoly(LPCSTR pszSoundName)
+static void Skin_PlaySoundPoly(LPCSTR pszSoundName)
{
if (g_UseDefaultPlaySound) {
- SkinPlaySound(pszSoundName);
+ Skin_PlaySound(pszSoundName);
return;
}
@@ -501,10 +501,10 @@ static void UpdateReminderEvent(REMINDERDATA *pReminder, UINT nElapsedSeconds, B if (!(*pHasPlayedSound & dwSoundMask)) {
switch (pReminder->SoundSel) {
- case 1: SkinPlaySoundPoly("AlertReminder2"); break;
- case 2: SkinPlaySoundPoly("AlertReminder3"); break;
+ case 1: Skin_PlaySoundPoly("AlertReminder2"); break;
+ case 2: Skin_PlaySoundPoly("AlertReminder3"); break;
default:
- SkinPlaySoundPoly("AlertReminder");
+ Skin_PlaySoundPoly("AlertReminder");
}
*pHasPlayedSound |= dwSoundMask;
@@ -546,10 +546,10 @@ static void FireReminder(REMINDERDATA *pReminder, BOOL *pHasPlayedSound) if (!(*pHasPlayedSound & dwSoundMask)) {
switch (pReminder->SoundSel) {
- case 1: SkinPlaySoundPoly("AlertReminder2"); break;
- case 2: SkinPlaySoundPoly("AlertReminder3"); break;
+ case 1: Skin_PlaySoundPoly("AlertReminder2"); break;
+ case 2: Skin_PlaySoundPoly("AlertReminder3"); break;
default:
- SkinPlaySoundPoly("AlertReminder");
+ Skin_PlaySoundPoly("AlertReminder");
}
*pHasPlayedSound |= dwSoundMask;
@@ -1825,9 +1825,9 @@ static INT_PTR CALLBACK DlgProcNewReminder(HWND Dialog, UINT Message, WPARAM wPa int n = SendDlgItemMessage(Dialog, IDC_COMBO_SOUND, CB_GETCURSEL, 0, 0);
n = (int)SendDlgItemMessage(Dialog, IDC_COMBO_SOUND, CB_GETITEMDATA, n, 0);
switch (n) {
- case 0: SkinPlaySound("AlertReminder"); break;
- case 1: SkinPlaySound("AlertReminder2"); break;
- case 2: SkinPlaySound("AlertReminder3"); break;
+ case 0: Skin_PlaySound("AlertReminder"); break;
+ case 1: Skin_PlaySound("AlertReminder2"); break;
+ case 2: Skin_PlaySound("AlertReminder3"); break;
}
}
return TRUE;
|