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 --- plugins/Weather/src/weather.cpp | 4 ++-- plugins/Weather/src/weather_update.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/Weather/src') diff --git a/plugins/Weather/src/weather.cpp b/plugins/Weather/src/weather.cpp index 827b5514eb..94327bc8e4 100644 --- a/plugins/Weather/src/weather.cpp +++ b/plugins/Weather/src/weather.cpp @@ -226,8 +226,8 @@ extern "C" int __declspec(dllexport) Load(void) InitServices(); // add sound event - SkinAddNewSoundExW("weatherupdated", _A2W(WEATHERPROTONAME), LPGENW("Weather Condition Changed")); - SkinAddNewSoundExW("weatheralert", _A2W(WEATHERPROTONAME), LPGENW("Weather Alert Issued")); + Skin_AddSound("weatherupdated", _A2W(WEATHERPROTONAME), LPGENW("Weather Condition Changed")); + Skin_AddSound("weatheralert", _A2W(WEATHERPROTONAME), LPGENW("Weather Alert Issued")); // window needed for popup commands wchar_t SvcFunc[100]; diff --git a/plugins/Weather/src/weather_update.cpp b/plugins/Weather/src/weather_update.cpp index 3054f13e3c..02d5129fab 100644 --- a/plugins/Weather/src/weather_update.cpp +++ b/plugins/Weather/src/weather_update.cpp @@ -110,7 +110,7 @@ int UpdateWeather(MCONTACT hContact) // alert issued, set display to italic if (opt.MakeItalic) db_set_w(hContact, WEATHERPROTONAME, "ApparentMode", ID_STATUS_OFFLINE); - SkinPlaySound("weatheralert"); + Skin_PlaySound("weatheralert"); } // alert dropped, set the display back to normal else db_unset(hContact, WEATHERPROTONAME, "ApparentMode"); @@ -162,7 +162,7 @@ int UpdateWeather(MCONTACT hContact) // logging if (Ch) { // play the sound event - SkinPlaySound("weatherupdated"); + Skin_PlaySound("weatherupdated"); if (db_get_b(hContact, WEATHERPROTONAME, "File", 0)) { // external log -- cgit v1.2.3