- missed changes

This commit is contained in:
2021-06-08 19:30:02 +03:00
parent ce9912dd8d
commit 61be61b7e3
10 changed files with 29 additions and 9 deletions

View File

@@ -951,4 +951,4 @@ void AgentImpl::closeAqua(int sessionId)
mAquaMap.erase(aquaIter);
}
}
#endif
#endif

View File

@@ -245,3 +245,8 @@ std::string MediaStreamId::getFinishDescription() const
return oss.str();
}
std::ostream& operator << (std::ostream& output, const MediaStreamId& id)
{
return (output << id.toString());
}

View File

@@ -87,4 +87,6 @@ struct MediaStreamId
std::string getFinishDescription() const;
};
std::ostream& operator << (std::ostream& output, const MediaStreamId& id);
#endif

View File

@@ -119,7 +119,7 @@ std::string StringHelper::toHex(unsigned int value)
std::string StringHelper::toHex(const void *ptr)
{
std::ostringstream oss;
oss << std::hex << ptr;
oss << std::fixed << std::setw(8) << std::setfill('0') << std::hex << ptr;
return oss.str();
}

View File

@@ -11,7 +11,8 @@ set (CMAKE_POSITION_INDEPENDENT_CODE ON)
set (USE_AMR_CODEC OFF CACHE BOOL "Use AMR codec. Requires libraries.")
set (USE_EVS_CODEC OFF CACHE BOOL "Use EVS 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
MT_Statistics.cpp

View File

@@ -96,7 +96,7 @@ CodecList::CodecList(const Settings& settings)
:mSettings(settings)
{
//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())
{
mFactoryList.push_back(new OpusCodec::OpusFactory(48000, 2, MT_OPUS_CODEC_PT));