From a8cd8e0c7fb1fa7df59d27823997fc6ca2cbb051 Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Wed, 29 May 2002 06:13:26 +0000 Subject: add float support to resampling lib clean up header file Original commit message from CVS: * add float support to resampling lib * clean up header file --- gst-libs/gst/resample/dtof.c | 65 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 gst-libs/gst/resample/dtof.c (limited to 'gst-libs/gst/resample/dtof.c') diff --git a/gst-libs/gst/resample/dtof.c b/gst-libs/gst/resample/dtof.c new file mode 100644 index 00000000..c392e676 --- /dev/null +++ b/gst-libs/gst/resample/dtof.c @@ -0,0 +1,65 @@ +/* Resampling library + * Copyright (C) <2001> David A. Schleef + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or any later version. + * + * This library 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 + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with this library; if not, write to the + * Free Software Foundation, Inc., 59 Temple Place - Suite 330, + * Boston, MA 02111-1307, USA. + */ + + +#include +#include +#include +#include + +/*#include */ +#include "private.h" + +void conv_double_float_ref(double *dest, float *src, int n) +{ + int i; + for(i=0;i