SoDaRadio-5.0.3-master:8901fb5
|
#include <complex>
#include <iostream>
#include <fstream>
#include <stdlib.h>
#include "ReSampler.hxx"
#include "ReSamplers625x48.hxx"
#include <time.h>
#include <fftw3.h>
#include <math.h>
#include <string.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
Go to the source code of this file.
Macros | |
#define | SAMPLE_RATE 48000 |
Functions | |
double | curtime () |
static void | bindump (char *fn, std::complex< float > *buf, unsigned int num_elts) __attribute__((unused)) |
void | checkResult (FILE *ofile, float anginc, unsigned int iM, unsigned int dN, unsigned int inlen, std::complex< float > *invec, std::complex< float > *outvec, int idx=0) |
float | loadVector (float ang, float ang_inc, std::complex< float > *vec, int len) |
void | test625x48 () |
void | test48x625 () |
void | aliasingPlot () |
int | main (int argc, char *argv[]) |
#define SAMPLE_RATE 48000 |
Definition at line 28 of file ReSampler_Test.cxx.
void aliasingPlot | ( | ) |
Definition at line 160 of file ReSampler_Test.cxx.
References SoDa::ReSample625to48::apply().
Referenced by main().
|
static |
Definition at line 62 of file ReSampler_Test.cxx.
Referenced by curtime().
void checkResult | ( | FILE * | ofile, |
float | anginc, | ||
unsigned int | iM, | ||
unsigned int | dN, | ||
unsigned int | inlen, | ||
std::complex< float > * | invec, | ||
std::complex< float > * | outvec, | ||
int | idx = 0 |
||
) |
Definition at line 73 of file ReSampler_Test.cxx.
Referenced by main().
double curtime | ( | ) |
float loadVector | ( | float | ang, |
float | ang_inc, | ||
std::complex< float > * | vec, | ||
int | len | ||
) |
Definition at line 110 of file ReSampler_Test.cxx.
Referenced by main().
int main | ( | int | argc, |
char * | argv[] | ||
) |
Definition at line 207 of file ReSampler_Test.cxx.
References aliasingPlot(), SoDa::ReSampler::apply(), checkResult(), curtime(), loadVector(), test48x625(), and test625x48().
void test48x625 | ( | ) |
Definition at line 156 of file ReSampler_Test.cxx.
Referenced by main().
void test625x48 | ( | ) |
Definition at line 123 of file ReSampler_Test.cxx.
References SoDa::ReSample625to48::apply().
Referenced by main().