aboutsummaryrefslogtreecommitdiffstats
path: root/src/codec_pcm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/codec_pcm.c')
-rw-r--r--src/codec_pcm.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/codec_pcm.c b/src/codec_pcm.c
new file mode 100644
index 0000000..34517b5
--- /dev/null
+++ b/src/codec_pcm.c
@@ -0,0 +1,27 @@
+/* Null codec: Raw PCM data (16 bits signed) */
+
+/*
+ * This file is part of gapk (GSM Audio Pocket Knife).
+ *
+ * gapk is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * gapk is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with gapk. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include <gapk/codecs.h>
+
+const struct codec_desc codec_pcm_desc = {
+ .type = CODEC_PCM,
+ .name = "pcm",
+ .description = "Raw PCM signed 16 bits samples",
+ .canon_frame_len = 320,
+};