tent='cgit v1.2.3-13-gbd6f'/>
aboutsummaryrefslogblamecommitdiff
path: root/src/qmmp/equ/iir_fpu.c
blob: 1d79b95a13c72a221f522ae2d428142ef2d98426 (plain) (tree)
1
2
3
4


                              
                                                                               














                                                                         
                                                            

   
                   
                   
                    
                
















                                                                                 

                                                                         









                                                                          
           



                                                         
                                 




                                              

                                                                           




                                                                          
     


                  
                  



















                                                                  
                                         
                       

                                      


                                 
                        





                                                        
                                          








                                                                  
          


                                                                              
                                                                                        

                           
                                  






                                                           
                                             














                                                                                 
                                                                 




                                                                    
 


















                                           
          

                                       
 


















                                                                 
                   
 
            

                
/*
 *   PCM time-domain equalizer
 *
 *   Copyright (C) 2002-2006  Felipe Rivera <liebremx at users sourceforge net>
 *
 *   This program 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 of the License, or
 *   (at your option) any later version.
 *
 *   This program 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 this program; if not, write to the Free Software
 *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 *   $Id: iir_fpu.c,v 1.4 2006/01/15 00:26:32 liebremx Exp $
 */

#include <stdlib.h>
#include <string.h>
#include "iir_fpu.h"
#include "iir.h"

static sXYData data_history[EQ_MAX_BANDS][EQ_CHANNELS] __attribute__((aligned));
static sXYData data_history2[EQ_MAX_BANDS][EQ_CHANNELS] __attribute__((aligned));
float gain[EQ_MAX_BANDS][EQ_CHANNELS] __attribute__((aligned));
/* random noise */
sample_t dither[256];
int di;

void set_gain(int index, int chn, float val)
{
  gain[index][chn] = val;
}

void clean_history()
{
  int n;
  /* Zero the history arrays */