- work to improve the decoding process - many problems fixes + however there are problems yet
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright(C) 2007-2014 VoIP objects (voipobjects.com)
|
||||
/* Copyright(C) 2007-2026 VoIP objects (voipobjects.com)
|
||||
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
@@ -9,31 +9,31 @@ using namespace MT;
|
||||
|
||||
int Codec::Factory::channels()
|
||||
{
|
||||
return 1;
|
||||
return 1;
|
||||
}
|
||||
void Codec::Factory::create(CodecMap& codecs)
|
||||
{
|
||||
codecs[payloadType()] = std::shared_ptr<Codec>(create());
|
||||
codecs[payloadType()] = std::shared_ptr<Codec>(create());
|
||||
}
|
||||
|
||||
void Codec::Factory::updateSdp(resip::SdpContents::Session::Medium::CodecContainer& codecs, SdpDirection direction)
|
||||
{
|
||||
codecs.push_back(resipCodec());
|
||||
codecs.push_back(resipCodec());
|
||||
}
|
||||
|
||||
resip::Codec Codec::Factory::resipCodec()
|
||||
{
|
||||
resip::Codec c(this->name(), this->payloadType(), this->samplerate());
|
||||
return c;
|
||||
resip::Codec c(this->name(), this->payloadType(), this->samplerate());
|
||||
return c;
|
||||
}
|
||||
|
||||
int Codec::Factory::processSdp(const resip::SdpContents::Session::Medium::CodecContainer& codecs, SdpDirection direction)
|
||||
{
|
||||
for (resip::SdpContents::Session::Medium::CodecContainer::const_iterator codecIter = codecs.begin(); codecIter != codecs.end(); ++codecIter)
|
||||
{
|
||||
if (resipCodec() == *codecIter)
|
||||
return codecIter->payloadType();
|
||||
}
|
||||
return -1;
|
||||
for (resip::SdpContents::Session::Medium::CodecContainer::const_iterator codecIter = codecs.begin(); codecIter != codecs.end(); ++codecIter)
|
||||
{
|
||||
if (resipCodec() == *codecIter)
|
||||
return codecIter->payloadType();
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user