summaryrefslogtreecommitdiff
path: root/configs/codecs.conf.sample
diff options
context:
space:
mode:
authorDavid Vossel <dvossel@digium.com>2011-07-07 19:39:17 +0000
committerDavid Vossel <dvossel@digium.com>2011-07-07 19:39:17 +0000
commit513c680b8c13bc644d9a12ec818c42b7ab5ee072 (patch)
tree2ad8099f4523512b84dacc6d135c659bddf247eb /configs/codecs.conf.sample
parentb5609161e076a7357c7d9e96d889e11c72edbfa3 (diff)
Adds pass-through support for codec CELT.
This patch adds pass-through support for CELT. CELT formats are defined in codecs.conf and can be configured to any sample rate a CELT endpoint supports. This patch also addresses a crash in channel.c resulting from a frame list being freed incorrectly. This crash was discovered while testing a CELT translator which had to split encoded audio into multiple frames. The codec translator is not a part of this patch, but may be contributed in the future. Review: https://reviewboard.asterisk.org/r/1294/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@326855 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'configs/codecs.conf.sample')
-rw-r--r--configs/codecs.conf.sample19
1 files changed, 18 insertions, 1 deletions
diff --git a/configs/codecs.conf.sample b/configs/codecs.conf.sample
index 4404d4a0c..9b5738577 100644
--- a/configs/codecs.conf.sample
+++ b/configs/codecs.conf.sample
@@ -126,7 +126,6 @@ maxbitrate=20000
fec=true
packetloss_percentage=10;
-
[silk24]
type=silk
samprate=24000
@@ -134,3 +133,21 @@ maxbitrate=30000
fec=true
packetloss_percentage=10;
+
+; Default custom CELT codec definitions. Only one custom CELT definition is allowed
+; per a sample rate.
+;[celt44]
+;type=celt
+;samprate=44100 ; The samplerate in hz. This option is required.
+;framesize=480 ; The framesize option represents the duration of each frame in samples.
+ ; This must be a factor of 2. This option is only advertised in an SDP
+ ; when it is set. Otherwise a default of framesize of 480 is assumed
+ ; internally
+
+;[celt48]
+;type=celt
+;samprate=48000
+
+;[celt32]
+;type=celt
+;samprate=32000