diff options
author | George Hazan <ghazan@miranda.im> | 2017-09-11 22:27:34 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-09-11 22:27:34 +0300 |
commit | 9834746e6a7e5cf04a32273155265bc3a2f57180 (patch) | |
tree | 66366fe9d2f74b09cc70bed366ad7d6c542c94ad /plugins/Alarms | |
parent | 9a774c4e9e76e660c14a5f725252bbc275b13906 (diff) |
old good sound services became finally functions
Diffstat (limited to 'plugins/Alarms')
-rw-r--r-- | plugins/Alarms/src/alarm_win.cpp | 2 | ||||
-rwxr-xr-x | plugins/Alarms/src/alarmlist.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Alarms/src/alarm_win.cpp b/plugins/Alarms/src/alarm_win.cpp index d419884193..f00893fbc9 100644 --- a/plugins/Alarms/src/alarm_win.cpp +++ b/plugins/Alarms/src/alarm_win.cpp @@ -178,7 +178,7 @@ INT_PTR CALLBACK DlgProcAlarm(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lPar if (data->sound_num <= 3) {
char buff[128];
mir_snprintf(buff, "Triggered%d", data->sound_num);
- SkinPlaySound(buff);
+ Skin_PlaySound(buff);
}
else if (data->sound_num == 4) {
if (data->szTitle != NULL && data->szTitle[0] != '\0') {
diff --git a/plugins/Alarms/src/alarmlist.cpp b/plugins/Alarms/src/alarmlist.cpp index 254e5119fd..a8c04b7d42 100755 --- a/plugins/Alarms/src/alarmlist.cpp +++ b/plugins/Alarms/src/alarmlist.cpp @@ -648,7 +648,7 @@ void DoAlarm(ALARM *alarm) if (alarm->sound_num > 0 && alarm->sound_num <= 3) {
char buff[128];
mir_snprintf(buff, "Triggered%d", alarm->sound_num);
- SkinPlaySound(buff);
+ Skin_PlaySound(buff);
}
else if (alarm->sound_num == 4) {
if (alarm->szTitle != NULL && alarm->szTitle[0] != '\0') {
@@ -779,9 +779,9 @@ int IdleChanged(WPARAM, LPARAM lParam) void InitList()
{
- SkinAddNewSoundEx("Triggered1", LPGEN("Alarms"), LPGEN("Alert 1"));
- SkinAddNewSoundEx("Triggered2", LPGEN("Alarms"), LPGEN("Alert 2"));
- SkinAddNewSoundEx("Triggered3", LPGEN("Alarms"), LPGEN("Alert 3"));
+ Skin_AddSound("Triggered1", LPGENW("Alarms"), LPGENW("Alert 1"));
+ Skin_AddSound("Triggered2", LPGENW("Alarms"), LPGENW("Alert 2"));
+ Skin_AddSound("Triggered3", LPGENW("Alarms"), LPGENW("Alert 3"));
// load last checked time
DBVARIANT dbv;
|