- missed changes
This commit is contained in:
parent
ce9912dd8d
commit
61be61b7e3
|
|
@ -60,7 +60,8 @@ set (rtphone_engine engine)
|
||||||
set (USE_AMR_CODEC OFF CACHE BOOL "Use AMR codec. Requires libraries.")
|
set (USE_AMR_CODEC OFF CACHE BOOL "Use AMR codec. Requires libraries.")
|
||||||
set (USE_EVS_CODEC OFF CACHE BOOL "Use EVS codec." )
|
set (USE_EVS_CODEC OFF CACHE BOOL "Use EVS codec." )
|
||||||
set (USE_OPUS_CODEC OFF CACHE BOOL "Use Opus codec." )
|
set (USE_OPUS_CODEC OFF CACHE BOOL "Use Opus codec." )
|
||||||
set (USE_SEVANA_LIB OFF CACHE BOOL "Build with Sevana libraries" )
|
set (USE_PVQA_LIB OFF CACHE BOOL "Build with Sevana PVQA library" )
|
||||||
|
set (USE_AQUA_LIB OFF CACHE BOOL "Build with Sevana AQuA library" )
|
||||||
|
|
||||||
# PIC code by default
|
# PIC code by default
|
||||||
set (CMAKE_POSITION_INDEPENDENT_CODE ON)
|
set (CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
|
|
@ -85,9 +86,15 @@ if (CMAKE_SYSTEM MATCHES "Darwin*")
|
||||||
add_definitions (-DTARGET_OSX)
|
add_definitions (-DTARGET_OSX)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (USE_SEVANA_LIB)
|
if (USE_AQUA_LIB)
|
||||||
message("Use Sevana libraries")
|
message("Use AQuA library")
|
||||||
add_definitions( -DUSE_AQUA_LIBRARY -DUSE_PVQA_LIBRARY)
|
add_definitions( -DUSE_AQUA_LIBRARY )
|
||||||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libs/pvqa/include)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (USE_PVQA_LIBRARY)
|
||||||
|
message("Use PVQA libraries")
|
||||||
|
add_definitions( -DUSE_PVQA_LIBRARY )
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libs/pvqa/include)
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libs/pvqa/include)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -951,4 +951,4 @@ void AgentImpl::closeAqua(int sessionId)
|
||||||
mAquaMap.erase(aquaIter);
|
mAquaMap.erase(aquaIter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -245,3 +245,8 @@ std::string MediaStreamId::getFinishDescription() const
|
||||||
return oss.str();
|
return oss.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::ostream& operator << (std::ostream& output, const MediaStreamId& id)
|
||||||
|
{
|
||||||
|
return (output << id.toString());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -87,4 +87,6 @@ struct MediaStreamId
|
||||||
std::string getFinishDescription() const;
|
std::string getFinishDescription() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
std::ostream& operator << (std::ostream& output, const MediaStreamId& id);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -119,7 +119,7 @@ std::string StringHelper::toHex(unsigned int value)
|
||||||
std::string StringHelper::toHex(const void *ptr)
|
std::string StringHelper::toHex(const void *ptr)
|
||||||
{
|
{
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
oss << std::hex << ptr;
|
oss << std::fixed << std::setw(8) << std::setfill('0') << std::hex << ptr;
|
||||||
return oss.str();
|
return oss.str();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,8 @@ set (CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
set (USE_AMR_CODEC OFF CACHE BOOL "Use AMR codec. Requires libraries.")
|
set (USE_AMR_CODEC OFF CACHE BOOL "Use AMR codec. Requires libraries.")
|
||||||
set (USE_EVS_CODEC OFF CACHE BOOL "Use EVS codec." )
|
set (USE_EVS_CODEC OFF CACHE BOOL "Use EVS codec." )
|
||||||
set (USE_OPUS_CODEC OFF CACHE BOOL "Use Opus codec." )
|
set (USE_OPUS_CODEC OFF CACHE BOOL "Use Opus codec." )
|
||||||
set (USE_SEVANA_LIB OFF CACHE BOOL "Build with Sevana libraries" )
|
set (USE_PVQA_LIB OFF CACHE BOOL "Build with Sevana PVQA library" )
|
||||||
|
set (USE_AQUA_LIB OFF CACHE BOOL "Build with Sevana AQuA library" )
|
||||||
|
|
||||||
set (SOURCES
|
set (SOURCES
|
||||||
MT_Statistics.cpp
|
MT_Statistics.cpp
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ CodecList::CodecList(const Settings& settings)
|
||||||
:mSettings(settings)
|
:mSettings(settings)
|
||||||
{
|
{
|
||||||
//mFactoryList.push_back(new OpusCodec::OpusFactory(16000, 1));
|
//mFactoryList.push_back(new OpusCodec::OpusFactory(16000, 1));
|
||||||
#if !defined(TARGET_ANDROID) && defined(USE_OPUS_CODEC)
|
#if defined(USE_OPUS_CODEC)
|
||||||
if (settings.mOpusSpec.empty())
|
if (settings.mOpusSpec.empty())
|
||||||
{
|
{
|
||||||
mFactoryList.push_back(new OpusCodec::OpusFactory(48000, 2, MT_OPUS_CODEC_PT));
|
mFactoryList.push_back(new OpusCodec::OpusFactory(48000, 2, MT_OPUS_CODEC_PT));
|
||||||
|
|
|
||||||
|
|
@ -426,7 +426,7 @@ std::string NetworkAddress::ip() const
|
||||||
{
|
{
|
||||||
assert(mInitialized == true);
|
assert(mInitialized == true);
|
||||||
|
|
||||||
char resultbuf[128], ip6[128]; resultbuf[0] = 0;
|
char resultbuf[131], ip6[128]; resultbuf[0] = 0;
|
||||||
|
|
||||||
#ifdef TARGET_WIN
|
#ifdef TARGET_WIN
|
||||||
DWORD resultsize = sizeof(resultbuf);
|
DWORD resultsize = sizeof(resultbuf);
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,9 @@ LogLevel LogLevelHelper::parse(const std::string& t)
|
||||||
else
|
else
|
||||||
if (t == "special")
|
if (t == "special")
|
||||||
return LL_SPECIAL;
|
return LL_SPECIAL;
|
||||||
|
else
|
||||||
|
if (t == "media")
|
||||||
|
return LL_MEDIA;
|
||||||
|
|
||||||
throw std::runtime_error("Bad log param string value.");
|
throw std::runtime_error("Bad log param string value.");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -164,12 +164,14 @@ extern Logger GLogger;
|
||||||
#define ICELogError(args_) ICELog(LL_ERROR, LOG_SUBSYSTEM, args_)
|
#define ICELogError(args_) ICELog(LL_ERROR, LOG_SUBSYSTEM, args_)
|
||||||
#define ICELogSpecial(args_) ICELog(LL_SPECIAL, LOG_SUBSYSTEM, args_)
|
#define ICELogSpecial(args_) ICELog(LL_SPECIAL, LOG_SUBSYSTEM, args_)
|
||||||
|
|
||||||
|
/*
|
||||||
#define ICELogCritical2(args_) ICELog(LogLevel_Critical, LogSubsystem.c_str(), args_)
|
#define ICELogCritical2(args_) ICELog(LogLevel_Critical, LogSubsystem.c_str(), args_)
|
||||||
#define ICELogInfo2(args_) ICELog(LogLevel_Info, LogSubsystem.c_str(), args_)
|
#define ICELogInfo2(args_) ICELog(LogLevel_Info, LogSubsystem.c_str(), args_)
|
||||||
#define ICELogDebug2(args_) ICELog(LogLevel_Debug, LogSubsystem.c_str(), args_)
|
#define ICELogDebug2(args_) ICELog(LogLevel_Debug, LogSubsystem.c_str(), args_)
|
||||||
#define ICELogMedia2(args_) ICELog(LogLevel_Media, LogSubsystem.c_str(), args_)
|
#define ICELogMedia2(args_) ICELog(LogLevel_Media, LogSubsystem.c_str(), args_)
|
||||||
#define ICELogError2(args_) ICELog(LogLevel_Error, LogSubsystem.c_str(), args_)
|
#define ICELogError2(args_) ICELog(LogLevel_Error, LogSubsystem.c_str(), args_)
|
||||||
#define ICELogSpecial2(args_) ICELog(LogLevel_Special, LogSubsystem.c_str(), args_)
|
#define ICELogSpecial2(args_) ICELog(LogLevel_Special, LogSubsystem.c_str(), args_)
|
||||||
|
*/
|
||||||
|
|
||||||
#define DEFINE_LOGGING(subsystem) \
|
#define DEFINE_LOGGING(subsystem) \
|
||||||
static std::string LogSubsystem = subsystem; \
|
static std::string LogSubsystem = subsystem; \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue