summaryrefslogtreecommitdiff
path: root/modules/mda/mda.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2014-02-09 11:50:07 +0100
committerAlfred E. Heggestad <aeh@db.org>2014-02-09 11:50:07 +0100
commit98bf08bdcf2edd9d397f32650a8bfe62186fbecf (patch)
treeebc6ec71f44bff8c42e4eefced61948623df02fc /modules/mda/mda.c
parente6ad5cf4401b860ba402d4b7b3c7c254bc87a019 (diff)
baresip 0.4.10
Diffstat (limited to 'modules/mda/mda.c')
-rw-r--r--modules/mda/mda.c40
1 files changed, 40 insertions, 0 deletions
diff --git a/modules/mda/mda.c b/modules/mda/mda.c
new file mode 100644
index 0000000..208facc
--- /dev/null
+++ b/modules/mda/mda.c
@@ -0,0 +1,40 @@
+/**
+ * @file mda.c Symbian MDA audio driver
+ *
+ * Copyright (C) 2010 Creytiv.com
+ */
+#include <re.h>
+#include <baresip.h>
+#include "mda.h"
+
+
+static struct auplay *auplay;
+static struct ausrc *ausrc;
+
+
+static int module_init(void)
+{
+ int err;
+
+ err = auplay_register(&auplay, "mda", mda_player_alloc);
+ err |= ausrc_register(&ausrc, "mda", mda_recorder_alloc);
+
+ return err;
+}
+
+
+static int module_close(void)
+{
+ auplay = mem_deref(auplay);
+ ausrc = mem_deref(ausrc);
+
+ return 0;
+}
+
+
+EXPORT_SYM const struct mod_export DECL_EXPORTS(mda) = {
+ "mda",
+ "audio",
+ module_init,
+ module_close,
+};