timidity/filter.h
author Sam Lantinga <slouken@libsdl.org>
Sat, 01 Jun 2013 22:30:04 -0700
changeset 627 438fb12df34f
parent 518 8bc9b5fd2aae
permissions -rw-r--r--
Updated iOS project to include OGG support directly
slouken@0
     1
/*
slouken@0
     2
    TiMidity -- Experimental MIDI to WAVE converter
slouken@0
     3
    Copyright (C) 1995 Tuukka Toivonen <toivonen@clinet.fi>
slouken@0
     4
slouken@0
     5
    This program is free software; you can redistribute it and/or modify
slouken@518
     6
    it under the terms of the Perl Artistic License, available in COPYING.
slouken@0
     7
slouken@0
     8
   filter.h : written by Vincent Pagel ( pagel@loria.fr )
slouken@0
     9
slouken@0
    10
   implements fir antialiasing filter : should help when setting sample
slouken@0
    11
   rates as low as 8Khz.
slouken@0
    12
slouken@0
    13
   */
slouken@0
    14
slouken@0
    15
/* Order of the FIR filter = 20 should be enough ! */
slouken@0
    16
#define ORDER 20
slouken@0
    17
#define ORDER2 ORDER/2
slouken@0
    18
slouken@0
    19
#ifndef PI
slouken@0
    20
#define PI   3.14159265
slouken@0
    21
#endif
slouken@0
    22
slouken@0
    23
extern void antialiasing(Sample *sp, int32 output_rate);