From 8b01f0ca05d92c593d9f33e40bae3f6dbb78a521 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 28 May 2017 11:04:26 +0200 Subject: 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 --- include/gapk/formats.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/gapk/formats.h') 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, }; -- cgit v1.2.3