aboutsummaryrefslogtreecommitdiffstats
path: root/include/gapk/formats.h
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 /include/gapk/formats.h
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 'include/gapk/formats.h')
-rw-r--r--include/gapk/formats.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/gapk/formats.h b/include/gapk/formats.h
index 4b2418a..e010713 100644
--- a/include/gapk/formats.h
+++ b/include/gapk/formats.h
@@ -48,6 +48,10 @@ enum format_type {
FMT_TI_FR,
FMT_TI_EFR,
+ /* AMR encoded data, variable length */
+ FMT_AMR_OPENCORE,
+ FMT_RTP_AMR,
+
_FMT_MAX,
};