summaryrefslogtreecommitdiff
path: root/protocols/Omegle/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-09-11 22:27:34 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-09-11 22:27:34 +0300
commit9834746e6a7e5cf04a32273155265bc3a2f57180 (patch)
tree66366fe9d2f74b09cc70bed366ad7d6c542c94ad /protocols/Omegle/src
parent9a774c4e9e76e660c14a5f725252bbc275b13906 (diff)
old good sound services became finally functions
Diffstat (limited to 'protocols/Omegle/src')
-rw-r--r--protocols/Omegle/src/communication.cpp12
-rw-r--r--protocols/Omegle/src/proto.cpp8
2 files changed, 10 insertions, 10 deletions
diff --git a/protocols/Omegle/src/communication.cpp b/protocols/Omegle/src/communication.cpp
index 32e0d891df..8e8f69e2cf 100644
--- a/protocols/Omegle/src/communication.cpp
+++ b/protocols/Omegle/src/communication.cpp
@@ -555,7 +555,7 @@ bool Omegle_client::events()
}
else if (name == "typing" || name == "spyTyping") {
// Stranger is typing, not supported by chat module yet
- SkinPlaySound("StrangerTyp");
+ Skin_PlaySound("StrangerTyp");
ptrW who(name == "spyTyping" ? json_as_string(json_at(item, 1)) : mir_wstrdup(L"Stranger"));
Srmm_SetStatusText(parent->GetChatHandle(),
@@ -564,7 +564,7 @@ bool Omegle_client::events()
}
else if (name == "stoppedTyping" || name == "spyStoppedTyping") {
// Stranger stopped typing, not supported by chat module yet
- SkinPlaySound("StrangerTypStop");
+ Skin_PlaySound("StrangerTypStop");
ptrW who(name == "spyTyping" ? json_as_string(json_at(item, 1)) : mir_wstrdup(L"Stranger"));
Srmm_SetStatusText(parent->GetChatHandle(),
@@ -575,7 +575,7 @@ bool Omegle_client::events()
Srmm_SetStatusText(parent->GetChatHandle(), nullptr);
// Play sound as we received message
- SkinPlaySound("StrangerMessage");
+ Skin_PlaySound("StrangerMessage");
if (state_ == STATE_ACTIVE) {
ptrW msg(json_as_string(json_at(item, 1)));
@@ -586,7 +586,7 @@ bool Omegle_client::events()
Srmm_SetStatusText(parent->GetChatHandle(), nullptr);
// Play sound as we received message
- SkinPlaySound("StrangerMessage");
+ Skin_PlaySound("StrangerMessage");
if (state_ == STATE_SPY) {
ptrW stranger(json_as_string(json_at(item, 1)));
@@ -600,7 +600,7 @@ bool Omegle_client::events()
// Stranger disconnected
if (db_get_b(NULL, parent->m_szModuleName, OMEGLE_KEY_DONT_STOP, 0))
{
- SkinPlaySound("StrangerChange");
+ Skin_PlaySound("StrangerChange");
parent->NewChat();
}
else
@@ -618,7 +618,7 @@ bool Omegle_client::events()
// Stranger disconnected
if (db_get_b(NULL, parent->m_szModuleName, OMEGLE_KEY_DONT_STOP, 0))
{
- SkinPlaySound("StrangerChange");
+ Skin_PlaySound("StrangerChange");
parent->NewChat();
}
else
diff --git a/protocols/Omegle/src/proto.cpp b/protocols/Omegle/src/proto.cpp
index 3eae533cda..aa46bbc601 100644
--- a/protocols/Omegle/src/proto.cpp
+++ b/protocols/Omegle/src/proto.cpp
@@ -57,10 +57,10 @@ PROTO<OmegleProto>(proto_name, username)
facy.set_handle(m_hNetlibUser);
- SkinAddNewSoundExW("StrangerTyp", m_tszUserName, LPGENW("Stranger is typing"));
- SkinAddNewSoundExW("StrangerTypStop", m_tszUserName, LPGENW("Stranger stopped typing"));
- SkinAddNewSoundExW("StrangerChange", m_tszUserName, LPGENW("Changing stranger"));
- SkinAddNewSoundExW("StrangerMessage", m_tszUserName, LPGENW("Receive message"));
+ Skin_AddSound("StrangerTyp", m_tszUserName, LPGENW("Stranger is typing"));
+ Skin_AddSound("StrangerTypStop", m_tszUserName, LPGENW("Stranger stopped typing"));
+ Skin_AddSound("StrangerChange", m_tszUserName, LPGENW("Changing stranger"));
+ Skin_AddSound("StrangerMessage", m_tszUserName, LPGENW("Receive message"));
}
OmegleProto::~OmegleProto()