[xiph-cvs] r6574 - trunk/postfish

xiphmont at xiph.org xiphmont at xiph.org
Tue May 4 21:25:30 PDT 2004



Author: xiphmont
Date: 2004-04-22 05:46:43 -0400 (Thu, 22 Apr 2004)
New Revision: 6574

Modified:
   trunk/postfish/suppress.c
   trunk/postfish/version.h
Log:
Eliminate a filter settling delay when switching to/from linked mode
in the Deverberator

<p><p>Modified: trunk/postfish/suppress.c
===================================================================
--- trunk/postfish/suppress.c	2004-04-22 09:31:18 UTC (rev 6573)
+++ trunk/postfish/suppress.c	2004-04-22 09:46:43 UTC (rev 6574)
@@ -168,7 +168,6 @@
         
         
         if(sset.linkp==0 || firstlink==1){
-	  firstlink++;
           
           compute_iir_symmetric4(fast, input_size, &sss->iirS[i][j],
                                  smooth);
@@ -186,6 +185,19 @@
           for(k=0;k<input_size;k++)
             fast[k]=fromdB_a((todB_a(slow+k)-todB_a(fast+k))*.5*multiplier);
           //_analysis("adj",i,fast,input_size,1,offset);
+
+	  if(sset.linkp && firstlink==1){
+
+	    for(l=0;l<input_ch;l++){
+	      if(l!=j){
+		memcpy(&sss->iirS[i][l],&sss->iirS[i][j],sizeof(iir_state));
+		memcpy(&sss->iirT[i][l],&sss->iirT[i][j],sizeof(iir_state));
+		memcpy(&sss->iirR[i][l],&sss->iirR[i][j],sizeof(iir_state));
+	      }
+	    }
+	  }
+
+	  firstlink++;
         }
         
         

Modified: trunk/postfish/version.h
===================================================================
--- trunk/postfish/version.h	2004-04-22 09:31:18 UTC (rev 6573)
+++ trunk/postfish/version.h	2004-04-22 09:46:43 UTC (rev 6574)
@@ -1,2 +1,2 @@
 #define VERSION "$Id$ "
-/* DO NOT EDIT: Automated versioning hack [Thu Apr 22 05:28:07 EDT 2004] */
+/* DO NOT EDIT: Automated versioning hack [Thu Apr 22 05:44:00 EDT 2004] */

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list