Skip to content

Commit

Permalink
Fix build warnings in fir
Browse files Browse the repository at this point in the history
Change-Id: I75b34cc30998bd7d018cf8de68d1cbb8870bb994
  • Loading branch information
gkasten committed Mar 10, 2014
1 parent 664334f commit a4ebf13
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions tools/resampler_tools/fir.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,24 +137,24 @@ int main(int argc, char** argv)
//
int nzc = 8;

//
// Example:
// 44.1 KHz to 48 KHz resampling
// 100 dB rejection above 28 KHz
// (the spectrum will fold around 24 KHz and we want 100 dB rejection
// at the point where the folding reaches 20 KHz)
// ...___|_____
// | \|
// | ____/|\____
// |/alias| \
// ------/------+------\---------> KHz
// 20 24 28

// Transition band 8 KHz, or dw = 1.0472
//
// beta = 10.056
// nzc = 20
//
/*
* Example:
* 44.1 KHz to 48 KHz resampling
* 100 dB rejection above 28 KHz
* (the spectrum will fold around 24 KHz and we want 100 dB rejection
* at the point where the folding reaches 20 KHz)
* ...___|_____
* | \|
* | ____/|\____
* |/alias| \
* ------/------+------\---------> KHz
* 20 24 28
*
* Transition band 8 KHz, or dw = 1.0472
*
* beta = 10.056
* nzc = 20
*/

int M = 1 << 4; // number of phases for interpolation
int ch;
Expand Down Expand Up @@ -270,7 +270,7 @@ int main(int argc, char** argv)
}
}
} else {
for (int j=0 ; j<polyN ; j++) {
for (unsigned int j=0 ; j<polyN ; j++) {
// calculate the phase
double p = ((polyM*j) % polyN) / double(polyN);
if (!debug) printf("\n ");
Expand Down

0 comments on commit a4ebf13

Please sign in to comment.