aboutsummaryrefslogtreecommitdiffstats
path: root/src/codecs.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-05-28 11:04:26 +0200
committerHarald Welte <laforge@gnumonks.org>2017-05-28 14:29:59 +0200
commit8b01f0ca05d92c593d9f33e40bae3f6dbb78a521 (patch)
tree1feb93efd06b9d1f920da49bcad764dc1f570b9f /src/codecs.c
parent494d92c3c7c2197381807f999d9d2a6ba23299e4 (diff)
Add AMR codec support
After merging this change, there is support for the AMR codec (by means of libopencore-amr, which is already used for EFR). In terms of gapk formats, we introdude * the "amr-opencore" format, which serves both as the canonical format, and as the input format to opencore-amrnb itself. * the "rtp-amr" format, which is the payload of RFC4867 octet-aligned mode You can use the following command for a real-time RTP playback for AMR frames: ./gapk -I 0.0.0.0/30000 -f rtp-amr -A default -g rawpcm-s16le
Diffstat (limited to 'src/codecs.c')
-rw-r--r--src/codecs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/codecs.c b/src/codecs.c
index 7a9a6d3..623e80c 100644
--- a/src/codecs.c
+++ b/src/codecs.c
@@ -26,6 +26,7 @@ extern const struct codec_desc codec_pcm_desc;
extern const struct codec_desc codec_hr_desc;
extern const struct codec_desc codec_fr_desc;
extern const struct codec_desc codec_efr_desc;
+extern const struct codec_desc codec_amr_desc;
const struct codec_desc *
@@ -36,6 +37,7 @@ codec_get_from_type(enum codec_type type)
case CODEC_HR: return &codec_hr_desc;
case CODEC_FR: return &codec_fr_desc;
case CODEC_EFR: return &codec_efr_desc;
+ case CODEC_AMR: return &codec_amr_desc;
default:
return NULL;
}