#pragma once #ifndef _WIN32 #include #include #endif #include #include #include #include "../VoIPController.h" #include "../tools/logging.h" #include "../tools/threading.h" #include "../tools/Buffers.h" #include "../controller/audio/OpusEncoder.h" #include "../controller/audio/OpusDecoder.h" #include "../VoIPServerConfig.h" #include "../controller/PrivateDefines.h" #include "../controller/net/Endpoint.h" #include "../tools/json11.hpp" #include "../controller/net/PacketSender.h" #include "../controller/audio/AudioPacketSender.h" #include "../video/VideoPacketSender.h" #include #include #include #include #include #include #include #include #include inline int pad4(int x) { int r = PAD4(x); if (r == 4) return 0; return r; } using namespace tgvoip; using namespace std; #ifdef __ANDROID__ #include "os/android/JNIUtilities.h" #include "os/android/AudioInputAndroid.h" #include "controller/net/NetworkSocket.h" extern jclass jniUtilitiesClass; #endif #if defined(TGVOIP_USE_CALLBACK_AUDIO_IO) #include "audio/AudioIOCallback.h" #endif