From 5da95c8f396b7ac716f7ea61c9d8c5a0eee7e1ec Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Tue, 14 Apr 2015 17:55:10 +0000 Subject: Tox: first approach for audio support git-svn-id: http://svn.miranda-ng.org/main/trunk@12824 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_proto.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'protocols/Tox/src/tox_proto.h') diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h index 82bfe006f3..07d229c4d2 100644 --- a/protocols/Tox/src/tox_proto.h +++ b/protocols/Tox/src/tox_proto.h @@ -65,6 +65,7 @@ public: private: Tox *tox; + ToxAv *toxAv; char *password; mir_cs toxLock; TCHAR *accountName; @@ -235,7 +236,19 @@ private: void OnGotFriendAvatarInfo(FileTransferParam *transfer, const uint8_t *hash); - // folders + // multimedia + std::map calls; + static void OnFriendAudio(void *agent, int32_t callId, const int16_t *PCM, uint16_t size, void *arg); + + 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); // utils TOX_USER_STATUS MirandaToToxStatus(int status); -- cgit v1.2.3