[asterisk-scf-commits] asterisk-scf/integration/mediaformatgeneric.git branch "g722" created.
Commits to the Asterisk SCF project code repositories
asterisk-scf-commits at lists.digium.com
Mon Aug 29 17:17:19 CDT 2011
branch "g722" has been created
at 394acf17b59aba78ffa6ec3df3c858eefd1f896b (commit)
- Log -----------------------------------------------------------------
commit 394acf17b59aba78ffa6ec3df3c858eefd1f896b
Author: Mark Michelson <mmichelson at digium.com>
Date: Mon Aug 29 17:18:32 2011 -0500
Add G722 format.
diff --git a/src/MediaFormatGeneric.cpp b/src/MediaFormatGeneric.cpp
index 7bfa26f..a635f75 100644
--- a/src/MediaFormatGeneric.cpp
+++ b/src/MediaFormatGeneric.cpp
@@ -337,6 +337,18 @@ void MediaFormatGenericApp::start(const std::string&, const Ice::CommunicatorPtr
descriptorService->addFormat(slin16->name, slin16, slin16SDP);
comparatorService->addFormat(slin16->name);
+ G722Ptr g722 = new G722();
+ g722->name = G722Name;
+ g722->operations = m8BitFormatOperationsProxy;
+ SDPDescriptorPtr g722SDP = new SDPDescriptor();
+ g722SDP->payload = 9;
+ g722SDP->type = "audio";
+ g722SDP->subtype = "G722";
+ g722SDP->samplerate = 8000;
+ g722->sampleRate = 16000;
+ descriptorService->addFormat(g722->name, g722, g722SDP);
+ comparatorService->addFormat(g722->name);
+
// Register our custom comparator with the service locator
ServiceLocatorParamsComparePrx comparatorServicePrx = ServiceLocatorParamsComparePrx::uncheckedCast(
mAdapter->addWithUUID(comparatorService));
-----------------------------------------------------------------------
--
asterisk-scf/integration/mediaformatgeneric.git
More information about the asterisk-scf-commits
mailing list