[xiph-commits] r8773 - trunk/postfish

xiphmont at motherfish-iii.xiph.org xiphmont at motherfish-iii.xiph.org
Wed Jan 19 21:22:54 PST 2005


Author: xiphmont
Date: 2005-01-19 21:22:52 -0800 (Wed, 19 Jan 2005)
New Revision: 8773

Modified:
   trunk/postfish/freeverb.c
   trunk/postfish/linkage.c
   trunk/postfish/postfish.h
   trunk/postfish/version.h
Log:
Huh.... looks like a commit may have been partially lost; I know I fixed these three bugs already.

Anyway, it both compiles and works now.

Monty



Modified: trunk/postfish/freeverb.c
===================================================================
--- trunk/postfish/freeverb.c	2005-01-20 00:11:00 UTC (rev 8772)
+++ trunk/postfish/freeverb.c	2005-01-20 05:22:52 UTC (rev 8773)
@@ -615,7 +615,7 @@
   for(i=0;i<input_ch;i++)
     rcs[i]=reverb_channelset+i;
   rms=malloc(OUTPUT_CHANNELS*sizeof(*rms));
-  for(i=0;i<input_ch;i++)
+  for(i=0;i<OUTPUT_CHANNELS;i++)
     rms[i]=&reverb_masterset;
 
   time_linkage_init(&outA,input_ch);

Modified: trunk/postfish/linkage.c
===================================================================
--- trunk/postfish/linkage.c	2005-01-20 00:11:00 UTC (rev 8772)
+++ trunk/postfish/linkage.c	2005-01-20 05:22:52 UTC (rev 8773)
@@ -103,6 +103,8 @@
   int i;
   for(i=0;i<in->channels;i++)
     memset(in->data[i],0,sizeof(**in->data)*input_size);
+  in->samples=0;
+  in->active=0;
 }
 
 int time_linkage_copy(time_linkage *dest,time_linkage *src){

Modified: trunk/postfish/postfish.h
===================================================================
--- trunk/postfish/postfish.h	2005-01-20 00:11:00 UTC (rev 8772)
+++ trunk/postfish/postfish.h	2005-01-20 05:22:52 UTC (rev 8773)
@@ -129,11 +129,6 @@
 #define toBark(n)   (13.1f*atan(.00074f*(n))+2.24f*atan((n)*(n)*1.85e-8f)+1e-4f*(n))
 #define fromBark(z) (102.f*(z)-2.f*pow(z,2.f)+.4f*pow(z,3.f)+pow(1.46f,z)-1.f)
 
-typedef struct postfish_instance {
-  int blocksize;
-  int rate;
-} postfish_instance;
-
 typedef struct time_linkage {
   int alias;
   int samples;  /* normally same as size; exception is EOF */

Modified: trunk/postfish/version.h
===================================================================
--- trunk/postfish/version.h	2005-01-20 00:11:00 UTC (rev 8772)
+++ trunk/postfish/version.h	2005-01-20 05:22:52 UTC (rev 8773)
@@ -1,2 +1,2 @@
 #define VERSION "$Id$ "
-/* DO NOT EDIT: Automated versioning hack [Sun Jan  2 22:19:56 EST 2005] */
+/* DO NOT EDIT: Automated versioning hack [Thu Jan 20 00:32:25 EST 2005] */



More information about the commits mailing list