Compare commits

...

3 Commits

40 changed files with 42 additions and 46 deletions

View File

@@ -62,7 +62,7 @@ if (CMAKE_SYSTEM MATCHES "Android")
message("Adding the Oboe library") message("Adding the Oboe library")
set (OBOE_DIR libs/oboe) set (OBOE_DIR libs/oboe)
add_subdirectory (${OBOE_DIR} ./oboe) add_subdirectory (${OBOE_DIR} build_oboe)
include_directories (${OBOE_DIR}/include) include_directories (${OBOE_DIR}/include)
set (DEFINES ${DEFINES} -DTARGET_ANDROID -DHAVE_NETINET_IN_H) set (DEFINES ${DEFINES} -DTARGET_ANDROID -DHAVE_NETINET_IN_H)
set (TARGET_ANDROID ON) set (TARGET_ANDROID ON)

View File

@@ -12,7 +12,7 @@
# include "../engine/audio/Audio_Android.h" # include "../engine/audio/Audio_Android.h"
#endif #endif
#define LOG_SUBSYSTEM "AudioManager" #define LOG_SUBSYSTEM "audio"
AudioManager::AudioManager() AudioManager::AudioManager()

View File

@@ -18,7 +18,7 @@ const std::string Status_NoMediaAction = "no valid media action";
const std::string Status_NoCommand = "no valid command"; const std::string Status_NoCommand = "no valid command";
const std::string Status_NoAudioManager = "no audio manager"; const std::string Status_NoAudioManager = "no audio manager";
#define LOG_SUBSYSTEM "Agent" #define LOG_SUBSYSTEM "agent"
AgentImpl::AgentImpl() AgentImpl::AgentImpl()
:mShutdown(false), mEventListChangeCondVar() :mShutdown(false), mEventListChangeCondVar()

View File

@@ -10,7 +10,7 @@
#ifdef TARGET_ANDROID #ifdef TARGET_ANDROID
#define LOG_SUBSYSTEM "Audio" #define LOG_SUBSYSTEM "audio"
using namespace Audio; using namespace Audio;

View File

@@ -13,7 +13,7 @@
using namespace Audio; using namespace Audio;
#define LOG_SUBSYSTEM "CoreAudio" #define LOG_SUBSYSTEM "audio"
enum enum
{ {

View File

@@ -7,7 +7,7 @@
#include <algorithm> #include <algorithm>
#include <assert.h> #include <assert.h>
#define LOG_SUBSYSTEM "Audio" #define LOG_SUBSYSTEM "audio"
using namespace Audio; using namespace Audio;

View File

@@ -22,7 +22,7 @@
#define DRV_QUERYFUNCTIONINSTANCEID (DRV_RESERVED + 17) #define DRV_QUERYFUNCTIONINSTANCEID (DRV_RESERVED + 17)
#define DRV_QUERYFUNCTIONINSTANCEIDSIZE (DRV_RESERVED + 18) #define DRV_QUERYFUNCTIONINSTANCEIDSIZE (DRV_RESERVED + 18)
#define LOG_SUBSYSTEM "DirectSound" #define LOG_SUBSYSTEM "audio"
using namespace Audio; using namespace Audio;

View File

@@ -12,7 +12,7 @@
#include "Audio_Mixer.h" #include "Audio_Mixer.h"
#define LOG_SUBSYSTEM "Mixer" #define LOG_SUBSYSTEM "audio"
using namespace Audio; using namespace Audio;
Mixer::Stream::Stream() Mixer::Stream::Stream()

View File

@@ -2,7 +2,7 @@
#include "helper/HL_Log.h" #include "helper/HL_Log.h"
#include <assert.h> #include <assert.h>
#include <chrono> #include <chrono>
#define LOG_SUBSYSTEM "NULL audio" #define LOG_SUBSYSTEM "audio"
using namespace Audio; using namespace Audio;

View File

@@ -7,7 +7,7 @@
#include "../helper/HL_Log.h" #include "../helper/HL_Log.h"
#define LOG_SUBSYSTEM "Player" #define LOG_SUBSYSTEM "audio"
using namespace Audio; using namespace Audio;
// -------------- Player ----------- // -------------- Player -----------

View File

@@ -32,7 +32,7 @@ WaveFormatEx;
#define WAVE_FORMAT_PCM 1 #define WAVE_FORMAT_PCM 1
#define LOG_SUBSYSTEM "WavFileReader" #define LOG_SUBSYSTEM "audio"
#define LOCK std::unique_lock<std::recursive_mutex> lock(mFileMtx); #define LOCK std::unique_lock<std::recursive_mutex> lock(mFileMtx);

View File

@@ -10,7 +10,7 @@
#include <resip/stack/Pidf.hxx> #include <resip/stack/Pidf.hxx>
#include <resip/stack/PlainContents.hxx> #include <resip/stack/PlainContents.hxx>
#define LOG_SUBSYSTEM "Account" #define LOG_SUBSYSTEM "engine"
#define CONFIG(X) mConfig->at(X) #define CONFIG(X) mConfig->at(X)
#define CONFIG_EXISTS(X) mConfig->exists(X) #define CONFIG_EXISTS(X) mConfig->exists(X)

View File

@@ -14,7 +14,7 @@
#include "../helper/HL_Log.h" #include "../helper/HL_Log.h"
#include "../helper/HL_String.h" #include "../helper/HL_String.h"
#define LOG_SUBSYSTEM "AudioProvider" #define LOG_SUBSYSTEM "engine"
AudioProvider::AudioProvider(UserAgent& agent, MT::Terminal& terminal) AudioProvider::AudioProvider(UserAgent& agent, MT::Terminal& terminal)
:mUserAgent(agent), mTerminal(terminal), mState(0), :mUserAgent(agent), mTerminal(terminal), mState(0),

View File

@@ -37,7 +37,7 @@
# include "resip/stack/ssl/WinSecurity.hxx" # include "resip/stack/ssl/WinSecurity.hxx"
#endif #endif
#define LOG_SUBSYSTEM "[Engine]" #define LOG_SUBSYSTEM "engine"
#define LOCK Lock l(mGuard) #define LOCK Lock l(mGuard)
#define CAST2RESIPSESSION(x) (x.isValid() ? (x->getAppDialogSet().isValid() ? dynamic_cast<ResipSession*>(x->getAppDialogSet().get()) : NULL) : NULL) #define CAST2RESIPSESSION(x) (x.isValid() ? (x->getAppDialogSet().isValid() ? dynamic_cast<ResipSession*>(x->getAppDialogSet().get()) : NULL) : NULL)

View File

@@ -11,7 +11,7 @@
#include "../helper/HL_Sync.h" #include "../helper/HL_Sync.h"
#include "../helper/HL_String.h" #include "../helper/HL_String.h"
#define LOG_SUBSYSTEM "[Engine]" #define LOG_SUBSYSTEM "engine"
typedef resip::SdpContents::Session::Medium Medium; typedef resip::SdpContents::Session::Medium Medium;
typedef resip::SdpContents::Session::MediumContainer MediumContainer; typedef resip::SdpContents::Session::MediumContainer MediumContainer;

View File

@@ -25,7 +25,7 @@
#include <cstdio> #include <cstdio>
#include <chrono> #include <chrono>
#define LOG_SUBSYSTEM "RtpDump" #define LOG_SUBSYSTEM "network"
static constexpr size_t MAX_RTP_PACKET_SIZE = 65535; static constexpr size_t MAX_RTP_PACKET_SIZE = 65535;
static const char RTPDUMP_SHEBANG[] = "#!rtpplay1.0"; static const char RTPDUMP_SHEBANG[] = "#!rtpplay1.0";

View File

@@ -20,7 +20,7 @@
#include "HL_Sync.h" #include "HL_Sync.h"
#include "HL_Exception.h" #include "HL_Exception.h"
#define LOG_SUBSYSTEM "[SocketHeap]" #define LOG_SUBSYSTEM "network"
#ifndef WIN32 #ifndef WIN32
#define WSAGetLastError(X) errno #define WSAGetLastError(X) errno

View File

@@ -6,7 +6,7 @@
#include "../helper/HL_IuUP.h" #include "../helper/HL_IuUP.h"
#include "../helper/HL_Log.h" #include "../helper/HL_Log.h"
#define LOG_SUBSYSTEM "AmrCodec" #define LOG_SUBSYSTEM "media"
using namespace MT; using namespace MT;

View File

@@ -25,7 +25,7 @@
#include <string.h> #include <string.h>
#include <algorithm> #include <algorithm>
#define LOG_SUBSYSTEM "Codec" #define LOG_SUBSYSTEM "media"
#ifdef TARGET_LINUX #ifdef TARGET_LINUX
# define stricmp strcasecmp # define stricmp strcasecmp

View File

@@ -21,9 +21,7 @@
#include <algorithm> #include <algorithm>
#define LOG_SUBSYSTEM "AudioReceiver" #define LOG_SUBSYSTEM "media"
//#define DUMP_DECODED
using namespace MT; using namespace MT;
@@ -564,7 +562,7 @@ void AudioReceiver::produceCNG(std::chrono::milliseconds length, Audio::DataWind
AudioReceiver::DecodeResult AudioReceiver::decodeGapTo(Audio::DataWindow& output, DecodeOptions options) AudioReceiver::DecodeResult AudioReceiver::decodeGapTo(Audio::DataWindow& output, DecodeOptions options)
{ {
ICELogDebug(<< "Gap detected."); ICELogMedia(<< "Gap detected.");
mDecodedLength = mResampledLength = 0; mDecodedLength = mResampledLength = 0;
if (mCngPacket && mCodec) if (mCngPacket && mCodec)

View File

@@ -16,7 +16,7 @@
#include "jrtplib/src/rtptransmitter.h" #include "jrtplib/src/rtptransmitter.h"
#include "jrtplib/src/rtpsessionparams.h" #include "jrtplib/src/rtpsessionparams.h"
#define LOG_SUBSYSTEM "AudioStream" #define LOG_SUBSYSTEM "media"
//#define DUMP_SENDING_AUDIO //#define DUMP_SENDING_AUDIO

View File

@@ -12,7 +12,7 @@
#include "../helper/HL_StreamState.h" #include "../helper/HL_StreamState.h"
#include "../helper/HL_Log.h" #include "../helper/HL_Log.h"
#define LOG_SUBSYSTEM "MT::Box" #define LOG_SUBSYSTEM "media"
using namespace MT; using namespace MT;

View File

@@ -7,7 +7,7 @@
#include "ICELog.h" #include "ICELog.h"
#include <assert.h> #include <assert.h>
#define LOG_SUBSYSTEM "MT" #define LOG_SUBSYSTEM "media"
using namespace MT; using namespace MT;
NativeRtpSender::NativeRtpSender(Statistics& stat) NativeRtpSender::NativeRtpSender(Statistics& stat)

View File

@@ -8,7 +8,7 @@
//#include "resip/stack/SdpContents.hxx" //#include "resip/stack/SdpContents.hxx"
#include "../engine/helper/HL_Log.h" #include "../engine/helper/HL_Log.h"
#define LOG_SUBSYSTEM "SingleAudioStream" #define LOG_SUBSYSTEM "media"
using namespace MT; using namespace MT;

View File

@@ -2,7 +2,7 @@
#include <iostream> #include <iostream>
#include "MT_Statistics.h" #include "MT_Statistics.h"
#define LOG_SUBSYSTEM "Statistics" #define LOG_SUBSYSTEM "media"
using namespace MT; using namespace MT;

View File

@@ -8,7 +8,7 @@
#include "../helper/HL_Log.h" #include "../helper/HL_Log.h"
#include <math.h> #include <math.h>
#define LOG_SUBSYSTEM "[Media]" #define LOG_SUBSYSTEM "media"
using namespace MT; using namespace MT;

View File

@@ -10,7 +10,7 @@
using namespace ice; using namespace ice;
#define LOG_SUBSYSTEM "ICE" #define LOG_SUBSYSTEM "ice"
AuthTransaction::AuthTransaction() AuthTransaction::AuthTransaction()
:Transaction(), mActive(false), mComposed(false), mConformsToKeepaliveSchedule(true), :Transaction(), mActive(false), mComposed(false), mConformsToKeepaliveSchedule(true),

View File

@@ -10,7 +10,7 @@
#include <memory> #include <memory>
using namespace ice; using namespace ice;
#define LOG_SUBSYSTEM "ICE" #define LOG_SUBSYSTEM "ice"
//----------------------- AuthClientBinding ----------------- //----------------------- AuthClientBinding -----------------

View File

@@ -8,7 +8,7 @@
#include <assert.h> #include <assert.h>
#define LOG_SUBSYSTEM "ICE" #define LOG_SUBSYSTEM "ice"
using namespace ice; using namespace ice;

View File

@@ -9,7 +9,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#define LOG_SUBSYSTEM "ICE" #define LOG_SUBSYSTEM "ice"
using namespace ice; using namespace ice;

View File

@@ -11,7 +11,7 @@
#include <stdio.h> #include <stdio.h>
using namespace ice; using namespace ice;
#define LOG_SUBSYSTEM "ICE" #define LOG_SUBSYSTEM "ice"
CandidatePair::CandidatePair() CandidatePair::CandidatePair()
:mPriority(0), mState(CandidatePair::Frozen), mControlledIndex(0), mControllingIndex(1), :mPriority(0), mState(CandidatePair::Frozen), mControlledIndex(0), mControllingIndex(1),
mNomination(Nomination_None), mRole(Regular), mTransaction(NULL) mNomination(Nomination_None), mRole(Regular), mTransaction(NULL)

View File

@@ -13,7 +13,7 @@
#include <sstream> #include <sstream>
using namespace ice; using namespace ice;
#define LOG_SUBSYSTEM "ICE" #define LOG_SUBSYSTEM "ice"
const char* CheckList::stateToString(int state) const char* CheckList::stateToString(int state)
{ {

View File

@@ -349,8 +349,6 @@ void Logger::beginLine(LogLevel level, const char* filename, int linenumber, con
void void
Logger::endLine() Logger::endLine()
{ {
*mStream << std::endl;
*mStream << std::flush;
mStream->flush(); mStream->flush();
std::ostringstream result; std::ostringstream result;
@@ -382,7 +380,7 @@ Logger::endLine()
} }
if (mFile) if (mFile)
{ {
fprintf(mFile, "%s", result.str().c_str()); fprintf(mFile, "%s\n", result.str().c_str());
fflush(mFile); fflush(mFile);
} }
if (mDelegate) if (mDelegate)

View File

@@ -38,7 +38,7 @@
#include "ICEError.h" #include "ICEError.h"
using namespace ice; using namespace ice;
#define LOG_SUBSYSTEM "ICE" #define LOG_SUBSYSTEM "ice"
#if defined(TARGET_WIN) && !defined(WINDOWS_RT) #if defined(TARGET_WIN) && !defined(WINDOWS_RT)
class IPHlpApi class IPHlpApi

View File

@@ -14,7 +14,7 @@
using namespace ice; using namespace ice;
#define LOG_SUBSYSTEM "ICE" #define LOG_SUBSYSTEM "ice"
// ------------------ ClientAllocate ----------------- // ------------------ ClientAllocate -----------------
ClientAllocate::ClientAllocate(unsigned int lifetime) ClientAllocate::ClientAllocate(unsigned int lifetime)

View File

@@ -28,7 +28,7 @@
using namespace ice; using namespace ice;
#define LOG_SUBSYSTEM "ICE" #define LOG_SUBSYSTEM "ice"
Session::Session() Session::Session()

View File

@@ -18,7 +18,7 @@
using namespace ice; using namespace ice;
#define LOG_SUBSYSTEM "ICE" #define LOG_SUBSYSTEM "ice"
const char* ice::RunningStateToString(RunningState state) const char* ice::RunningStateToString(RunningState state)
{ {

View File

@@ -24,7 +24,7 @@
#define STUN_HEADER_SIZE 20 #define STUN_HEADER_SIZE 20
#define HMAC_DIGEST_SIZE 20 #define HMAC_DIGEST_SIZE 20
#define LOG_SUBSYSTEM "ICE" #define LOG_SUBSYSTEM "ice"
using namespace ice; using namespace ice;

View File

@@ -17,7 +17,7 @@
#include <assert.h> #include <assert.h>
using namespace ice; using namespace ice;
#define LOG_SUBSYSTEM "ICE" #define LOG_SUBSYSTEM "ice"
const char* Transaction::stateToString(State state) const char* Transaction::stateToString(State state)
{ {

View File

@@ -9,7 +9,7 @@
using namespace ice; using namespace ice;
#define LOG_SUBSYSTEM "ICE" #define LOG_SUBSYSTEM "ice"
TransactionList::TransactionList() TransactionList::TransactionList()
:mRegularIndex(0), mPrioritizedIndex(0) :mRegularIndex(0), mPrioritizedIndex(0)