By the way, when you say "calling resetForwardMemory(int forwardMemSize) will wipe out all data in your forwardMemory array." do u mean it will do that everytime initialiseForward is called? because i need to add the forwardMemory (which is essentially an 'echo')to the next chunk of data (otherwise you won't hear the echo)
I think my level of help is diminishing heh. I also have to head out, hopefully you can make some progress on your own.
Find out why the array you are passing in to initializeForward (in that method it's forwardBuffer) is not the same length as forwardMemory. Them being different length is what triggers the exception.
arrays in java, cannot be resized. if you plan on resizing the data array often, you should use another container, such as a linked list. if resizing occurs infrequently, it is acceptable to declare a larger array, copy the contents of the smaller array into it, and then assign the new larger array to the variable of the older one:
int myArray = new int;
int myLargerArray = new int;
myArray = myLargerArray;
the small array is lost, and myArray becomes an array of 100 length..
dont do this often, it takes too much time to shift massive amounts of data around..
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL