diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2017-09-11 23:49:15 +0300 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2017-09-11 23:49:15 +0300 |
commit | e09448dd03e3647717166e92ee818e395041993a (patch) | |
tree | 2733f155bb5fd9313ea08255209da75f738bcedf /plugins/NotifyAnything | |
parent | b0f44b16bd1138de85a5d17bb42151742f9c8298 (diff) | |
parent | 9834746e6a7e5cf04a32273155265bc3a2f57180 (diff) |
Merge branch 'master' of https://github.com/miranda-ng/miranda-ng
Diffstat (limited to 'plugins/NotifyAnything')
-rw-r--r-- | plugins/NotifyAnything/src/main.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/plugins/NotifyAnything/src/main.cpp b/plugins/NotifyAnything/src/main.cpp index 3e72bf9f3d..598837dfc3 100644 --- a/plugins/NotifyAnything/src/main.cpp +++ b/plugins/NotifyAnything/src/main.cpp @@ -142,15 +142,7 @@ void registerSound(const std::wstring &name) std::wstring id = L"NotifyAnything_" + name;
std::wstring desc = L"NotifyAnything: " + name;
std::wstring file = name + L".wav";
-
- SKINSOUNDDESCEX ssd = { 0 };
- ssd.cbSize = sizeof(ssd);
- ssd.dwFlags = SSDF_UNICODE;
- ssd.pszName = _T2A(id.c_str());
- ssd.pwszSection = LPGENW("Notify Anything");
- ssd.pwszDescription = desc.c_str();
- ssd.pwszDefaultFile = file.c_str();
- Skin_AddSound(&ssd);
+ Skin_AddSound(_T2A(id.c_str()), LPGENW("Notify Anything"), desc.c_str(), file.c_str());
}
HICON getIcon(const std::wstring &name)
@@ -823,7 +815,7 @@ void processMessage(std::wstring buf) Beep(650, 50);
else {
std::wstring sname = L"NotifyAnything_" + msg.sound;
- SkinPlaySound(_T2A(sname.c_str()));
+ Skin_PlaySound(_T2A(sname.c_str()));
}
}
}
|