You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Well, when it's working right, the buf argument should point to the correct buffer, so there'll be need for that?

    Having an array would work, but would use up a little bit more RAM and would be a tiny bit slower. It would make more sense though... Only problem is it would stop pretty much all existing code that used waveforms from working - I'm likely to annoy far more people with that than I'll make happy with the change :)

    You can easily fake it though. Right after creating the Waveform class, do:

    w.buffers = [ w.buffer, w.buffer2 ];

Avatar for Gordon @Gordon started