uk.org.toot.audio.filter
Class FIRFilter

java.lang.Object
  extended by uk.org.toot.audio.filter.AbstractFilter
      extended by uk.org.toot.audio.filter.FIRFilter
All Implemented Interfaces:
Filter

public class FIRFilter
extends AbstractFilter


Nested Class Summary
 
Nested classes/interfaces inherited from interface uk.org.toot.audio.filter.Filter
Filter.State, Filter.Type
 
Constructor Summary
FIRFilter(FilterSpecification spec)
           
 
Method Summary
 void filter(float[] signal, float[] mixBuffer, int len, int chan, boolean doMix)
          Filter the source signal to the destination signal.
 float filterSample(float sample, uk.org.toot.audio.filter.FIRFilter.FIRState s)
           
 
Methods inherited from class uk.org.toot.audio.filter.AbstractFilter
clear, close, getDesign, open, setSampleRate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FIRFilter

public FIRFilter(FilterSpecification spec)
Method Detail

filterSample

public float filterSample(float sample,
                          uk.org.toot.audio.filter.FIRFilter.FIRState s)

filter

public void filter(float[] signal,
                   float[] mixBuffer,
                   int len,
                   int chan,
                   boolean doMix)
Description copied from interface: Filter
Filter the source signal to the destination signal. If the source and dest are the same a simple in-place filter should result. If the source and destination are different the Filter should add (or subtract) a portion of the source to the destination. This portion should represent the contribution to an equaliser comprising multiple such filters.

Specified by:
filter in interface Filter
Specified by:
filter in class AbstractFilter
chan - permits the Filter to use different States for different logical filter channels.


Copyright © 2004, 2005, 2006, 2007 Steve Taylor. All Rights Reserved.