Codebase list libsdl2-mixer / debian/2.0.1+dfsg1-3 timidity / filter.h
debian/2.0.1+dfsg1-3

Tree @debian/2.0.1+dfsg1-3 (Download .tar.gz)

filter.h @debian/2.0.1+dfsg1-3raw · history · blame

/*
    TiMidity -- Experimental MIDI to WAVE converter
    Copyright (C) 1995 Tuukka Toivonen <toivonen@clinet.fi>

    This program is free software; you can redistribute it and/or modify
    it under the terms of the Perl Artistic License, available in COPYING.

   filter.h : written by Vincent Pagel ( pagel@loria.fr )

   implements fir antialiasing filter : should help when setting sample
   rates as low as 8Khz.

   */

/* Order of the FIR filter = 20 should be enough ! */
#define ORDER 20
#define ORDER2 ORDER/2

#ifndef PI
#define PI   3.14159265
#endif

extern void antialiasing(Sample *sp, int32 output_rate);