Hi Mark,
Thanks for taking the time to help me out. I am very confused about this (sorry)
My structure is like this:
I start out with a list of file names. From the filenames, I create an array of meteringsamplesproviders like so: (Note, this is just pseudo code, just to show what I am trying to do)
MeteringSampleProvider[] SamplesBeforeMixdown = new MeteringSampleProvider(new AudioFileReader([FileNames.Count]));
for(int n = 0; n<FileNames.count;n++)
{
MeteringSampleProvider input = new MeteringSampleProvider(new AudioFileReader(FileNames[n]));
SamplesBeforeMixdown[n] = input;
}
Then I pass the array to my MixingMultiplexingSampleProvider, like this:
MixingMultiplexingSampleProvider sampleprovider = new MixingMultiplexingSampleProvider(SamplesBeforeMixdown, WaveOut.GetCapabilities(playbackDeviceNumber).Channels);
Also, I made changes to the MeteringSampleProvide class in order to store offset / channels, so that I can link each sample provider in the array to a waveformpainter control. (I catch the StreamVolume event in order to draw the wave in the waveformpainter. So I till need to access the UI controls as well.
I am completely confused now as to where/how I need to implement looping. I'm slightly new to this, so sorry for all the questions...
Thanks!