aboutsummaryrefslogtreecommitdiffstats
path: root/codecs/codecs.c
diff options
context:
space:
mode:
Diffstat (limited to 'codecs/codecs.c')
-rw-r--r--codecs/codecs.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/codecs/codecs.c b/codecs/codecs.c
index 4e5f542..abbd551 100644
--- a/codecs/codecs.c
+++ b/codecs/codecs.c
@@ -29,6 +29,10 @@
#include "G729/G729decode.h"
#endif
+#ifdef HAVE_AMRNB
+#include "amr/amrdecode.h"
+#endif
+
#ifdef HAVE_PLUGINS
@@ -92,6 +96,11 @@ codecs_init(void)
codec_sbc_get_channels, codec_sbc_get_frequency, codec_sbc_decode);
#endif
+#ifdef HAVE_AMRNB
+ register_codec("AMR", codec_amr_init, codec_amr_release,
+ codec_amr_get_channels, codec_amr_get_frequency, codec_amr_decode);
+#endif
+
#ifdef HAVE_PLUGINS
libwscodecs_plugins = plugins_init(WS_PLUGIN_CODEC);
g_slist_foreach(codecs_plugins, call_plugin_register_codec_module, NULL);