[xiph-commits] r8588 - trunk/postfish
xiphmont at motherfish-iii.xiph.org
xiphmont at motherfish-iii.xiph.org
Sun Jan 2 21:29:10 PST 2005
Author: xiphmont
Date: 2005-01-02 21:29:09 -0800 (Sun, 02 Jan 2005)
New Revision: 8588
Added:
trunk/postfish/libpostfish.c
Modified:
trunk/postfish/internal.h
Log:
more lib split preparation
Modified: trunk/postfish/internal.h
===================================================================
--- trunk/postfish/internal.h 2005-01-03 05:28:05 UTC (rev 8587)
+++ trunk/postfish/internal.h 2005-01-03 05:29:09 UTC (rev 8588)
@@ -21,11 +21,10 @@
*
*/
-extern void time_linkage_init(time_linkage *new,int ch);
-extern int time_linkage_copy(time_linkage *dest,time_linkage *src);
-extern int time_linkage_channels(time_linkage *in);
-extern int time_linkage_samples(time_linkage *in);
-extern int time_linkage_init_alias_split(time_linkage *in,time_linkage *out);
-extern void time_linkage_init_alias_combine(time_linkage *in,time_linkage *out,int ch);
-extern void time_linkage_swap(time_linkage *a, time_linkage *b);
-extern void time_linkage_clear(time_linkage *in);
+#include "libpostfish.h"
+
+struct postfish_instance {
+ int rate;
+ int blocksize;
+ float ***window_func;
+};
Added: trunk/postfish/libpostfish.c
===================================================================
--- trunk/postfish/libpostfish.c 2005-01-03 05:28:05 UTC (rev 8587)
+++ trunk/postfish/libpostfish.c 2005-01-03 05:29:09 UTC (rev 8588)
@@ -0,0 +1,31 @@
+/*
+ *
+ * postfish
+ *
+ * Copyright (C) 2002-2005 Monty
+ *
+ * Postfish 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 2, or (at your option)
+ * any later version.
+ *
+ * Postfish 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 Postfish; see the file COPYING. If not, write to the
+ * Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ *
+ */
+
+#include "internal.h"
+
+void postfish_instance_init(postfish_instance *p, int samplerate, int blocksize){
+ memset(p,0,sizeof(*p));
+ p->rate=samplerate;
+ p->blocksize=blocksize;
+
+}
More information about the commits
mailing list