Well... this is a lot better than it was. It still isn't right. I think it does the sample shifting correctly though. Check it out and let me know!

http://hacylon.case.edu/laser/LaserB...07_08_2008.zip

I'm still working on it!

When you first make a wave, it has no offsets in it. For some reason it isn't right. But, if you use LaserBoy to apply sample shift (even a shift of all zeros!) it seems to fix it. I'm almost sure it is an issue of actual file size vs. what I'm saving in the header as the file size.

James.