diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-04-17 23:21:43 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-04-17 23:21:43 +0000 |
commit | 67c3941db8a7ea1965dbed909f33380200f04090 (patch) | |
tree | 204629e2f887a7f02952375516a1d22c76c79c1f /protocols/Tox/src/tox_proto.h | |
parent | a4135a992461726e155c7be95e4ceaabdb3eceff (diff) |
Tox: audio support pt.4
git-svn-id: http://svn.miranda-ng.org/main/trunk@12898 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_proto.h')
-rw-r--r-- | protocols/Tox/src/tox_proto.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h index c6c953a8b2..5919b97f84 100644 --- a/protocols/Tox/src/tox_proto.h +++ b/protocols/Tox/src/tox_proto.h @@ -7,6 +7,8 @@ struct CToxProto : public PROTO<CToxProto> friend CToxOptionsMain;
friend CToxOptionsNodeList;
friend CToxAudioCall;
+ friend CToxIncomingAudioCall;
+ friend CToxOutcomingAudioCall;
public:
//////////////////////////////////////////////////////////////////////////////////////
@@ -241,21 +243,22 @@ private: // multimedia
HANDLE hAudioDialogs;
- std::map<MCONTACT, int> calls;
+ std::map<MCONTACT, int32_t> calls;
+
+ ToxAvCSettings* GetAudioCSettings();
static void OnFriendAudio(void *agent, int32_t callId, const int16_t *PCM, uint16_t size, void *arg);
INT_PTR __cdecl OnRecvAudioCall(WPARAM wParam, LPARAM lParam);
- INT_PTR __cdecl OnAudioRing(WPARAM hContact, LPARAM lParam);
+ INT_PTR __cdecl OnAudioRing(WPARAM wParam, LPARAM lParam);
+
+ INT_PTR __cdecl OnSendAudioCall(WPARAM wParam, LPARAM);
static void OnAvInvite(void*, int32_t callId, void *arg);
- static void OnAvRinging(void*, int32_t callId, void *arg);
static void OnAvStart(void*, int32_t callId, void *arg);
static void OnAvEnd(void*, int32_t callId, void *arg);
static void OnAvReject(void*, int32_t callId, void *arg);
static void OnAvCancel(void*, int32_t callId, void *arg);
- static void OnAvCsChange(void*, int32_t callId, void *arg);
- static void OnAvRequestTimeout(void*, int32_t callId, void *arg);
- static void OnAvPeerTimeout(void*, int32_t callId, void *arg);
+ static void OnAvTimeout(void*, int32_t callId, void *arg);
// utils
TOX_USER_STATUS MirandaToToxStatus(int status);
|