public class E_Q {
public var filterType:int=4;// filterType should be passed as 4 this sets up a peaking filter. Const for now
public var numberInFrames:int;// numberOfFrames is the length in samples of one channels worth of aduio
public var frequency:Number;// frequency, bandwidth, and gain range between 0 and 255
public var bandwidth:Number;
public var gain:Number;
public var sampleRate:int;
public var channels:int;
public var inputData:Array=new Array();// inputData is a buffer numberInFrames*channels long of floats
public var outputData:Array=new Array();// outputData is a buffer numberInFrames*channels long of floats
public var lastInput:Array=new Array();
public var secondlastInput:Array=new Array();
public var lastOutput:Array=new Array();
public var secondlastOutput:Array=new Array();
public var eqResult:Array=new Array();

Hi, I found out what the problem was. One of the formulas in the case statement was messed up. That was causing the problem. I was barking up the wrrong tree, I thought the error was related to the return value.