Does anyone have any code to do any of the following, or any hints and tips?:

I need to create a class which will load a wav file from disk, and play it. Mutiple instances of this class need to run at the same time, so two or more wav files are mixed.

The class should be able to "pan" the audio from left to right, and also mute and vary the volume.

I have a M-Audio 1010LT audio card which has four sets of speaker outputs. I need to be able to direct the output of the player class to a specified set of speakers. Again, more than one player class should be able to be played on the same set of speakers.

I know this is a lot to ask, but I've been bashing my head against various libraries such as RtAudio, libsndfile portAudio etc for a few days now, without seeing the light.

Any help on this would be gratefully received, even partial solutions which could be stitched together. Thanks.