The mixer as currently written does not support looped samples, but adding support for that should be quite easy as long as the sample is an exact multiple of the sample buffer in size. Can be done for non-multiples as well, obviously, but that'd probably require more changes.
As for 2 channels @11KHz and 2 channels @22KHz, that should be possible, but will require some changes. While the mixer currently only runs one interrupt, there's nothing to stop it from running on two channels with two interrupts. However, the data structures aren't designed for this so they'd need changing.
|