Skip to content

Commit

Permalink
passThrough szűrő
Browse files Browse the repository at this point in the history
  • Loading branch information
Endruu committed Oct 22, 2013
1 parent 15c06f5 commit c0f57cc
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion program/headers/constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#define F_SAMPLING 48000.0

// Number of filters
#define FILTER_NUM 1
#define FILTER_NUM 2

// Debugging
#define DEBUG_FUNCTIONS_ENABLED
Expand Down
1 change: 1 addition & 0 deletions program/headers/iir_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ complex prewarpPZ(complex pz);

int implementFilter( pzkContainer * digitalized, biquad * bList );
biquad * pairPZ( pzkContainer * pzk, uint insert, char options );
int i_no_implement( pzkContainer * pzk, biquad * bList );
int i_direct1_float_K( pzkContainer * pzk, biquad * bList );

#endif
5 changes: 5 additions & 0 deletions program/source/iir_implement.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <float.h> // float limits

const filterList fList[FILTER_NUM] = {
{ &passThrough, &i_no_implement },
{ &f_direct1_float_postK, &i_direct1_float_K }
};

Expand Down Expand Up @@ -607,6 +608,10 @@ biquad * pairPZ( pzkContainer * pzk, uint insert, char options ) {

}

int i_no_implement( pzkContainer * pzk, biquad * bList ) {
return 1;
}

int i_direct1_float_K( pzkContainer * pzk, biquad * bList ) {
float *c;
const int bNum = countBiquads(pzk);
Expand Down

0 comments on commit c0f57cc

Please sign in to comment.