+/*
+ * Copyright (C) 2012 Andre Noll <maan@systemlinux.org>
+ *
+ * Licensed under the GPL v2. For licencing details see COPYING.
+ */
+
+/** \file resample_filter.c A sample rate converter based on libsamplerate. */
+
+#include <regex.h>
+
+#include "resample_filter.cmdline.h"
+#include "para.h"
+#include "error.h"
+#include "list.h"
+#include "sched.h"
+#include "ggo.h"
+#include "buffer_tree.h"
+#include "filter.h"
+#include "string.h"
+
+static void resample_close(struct filter_node *fn)
+{
+ free(fn->private_data);
+ fn->private_data = NULL;
+}
+
+static void resample_open(struct filter_node *fn)
+{
+}
+
+static void resample_pre_select(struct sched *s, struct task *t)
+{
+ struct filter_node *fn = container_of(t, struct filter_node, task);
+}
+
+static void resample_post_select(__a_unused struct sched *s, struct task *t)
+{
+ struct filter_node *fn = container_of(t, struct filter_node, task);
+}
+
+static int resample_parse_config(int argc, char **argv, void **config)
+{
+ return 0;
+}
+
+static void resample_free_config(void *conf)
+{
+ resample_filter_cmdline_parser_free(conf);
+}
+
+/**
+ * The init function of the resample filter.
+ *
+ * \param f Structure to initialize.
+ */
+void resample_filter_init(struct filter *f)
+{
+ struct resample_filter_args_info dummy;
+
+ resample_filter_cmdline_parser_init(&dummy);
+ f->close = resample_close;
+ f->open = resample_open;
+ f->pre_select = resample_pre_select;
+ f->post_select = resample_post_select;
+ f->parse_config = resample_parse_config;
+ f->free_config = resample_free_config;
+ f->help = (struct ggo_help) {
+ .short_help = resample_filter_args_info_help,
+ .detailed_help = resample_filter_args_info_detailed_help
+ };
+}