From 8fca45acc3ac3c103ed47d91b6a875ae22716b0a Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Tue, 8 Sep 2015 20:04:50 +0000 Subject: Tox: moving on MMDeviceAPI. pt 1. Multimedia options git-svn-id: http://svn.miranda-ng.org/main/trunk@15312 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_core.cpp | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'protocols/Tox/src/tox_core.cpp') diff --git a/protocols/Tox/src/tox_core.cpp b/protocols/Tox/src/tox_core.cpp index 57281ad340..e2c683d751 100644 --- a/protocols/Tox/src/tox_core.cpp +++ b/protocols/Tox/src/tox_core.cpp @@ -68,15 +68,18 @@ bool CToxProto::InitToxCore() // group chats //tox_callback_group_invite(tox, OnGroupChatInvite, this); // a/v - /*toxAv = toxav_new(tox, TOX_MAX_CALLS); - toxav_register_audio_callback(toxAv, OnFriendAudio, this); - toxav_register_callstate_callback(toxAv, OnAvInvite, av_OnInvite, this); - toxav_register_callstate_callback(toxAv, OnAvStart, av_OnStart, this); - toxav_register_callstate_callback(toxAv, OnAvCancel, av_OnCancel, this); - toxav_register_callstate_callback(toxAv, OnAvReject, av_OnReject, this); - toxav_register_callstate_callback(toxAv, OnAvEnd, av_OnEnd, this); - toxav_register_callstate_callback(toxAv, OnAvCallTimeout, av_OnRequestTimeout, this); - toxav_register_callstate_callback(toxAv, OnAvPeerTimeout, av_OnPeerTimeout, this);*/ + if (IsWinVerVistaPlus()) + { + /*toxAv = toxav_new(tox, TOX_MAX_CALLS); + toxav_register_audio_callback(toxAv, OnFriendAudio, this); + toxav_register_callstate_callback(toxAv, OnAvInvite, av_OnInvite, this); + toxav_register_callstate_callback(toxAv, OnAvStart, av_OnStart, this); + toxav_register_callstate_callback(toxAv, OnAvCancel, av_OnCancel, this); + toxav_register_callstate_callback(toxAv, OnAvReject, av_OnReject, this); + toxav_register_callstate_callback(toxAv, OnAvEnd, av_OnEnd, this); + toxav_register_callstate_callback(toxAv, OnAvCallTimeout, av_OnRequestTimeout, this); + toxav_register_callstate_callback(toxAv, OnAvPeerTimeout, av_OnPeerTimeout, this);*/ + } uint8_t data[TOX_ADDRESS_SIZE]; tox_self_get_address(tox, data); -- cgit v1.2.3