This project has moved and is read-only. For the latest updates, please go here.

Panning control classes

Dec 7, 2011 at 2:32 PM

I've started working on an audio project that plays multiple clips simultaneously.  I've modeled my code very much based on the "Audio File Playback" portion of the Demo App which is working quite well.

WaveStream -> SampleChannel -> MeteringSampleProvider -> SampleToWaveProvider -> IWavePlayer

My question is this: where in the 'chain' would I access panning control?  Would I need to insert a new object somewhere in the chain?  I only seem to find panning methods in the WaveChannel32 class but am not sure how to incorporate it.

Any advice or sample code using the panning features would be greatly appreciated...





Dec 7, 2011 at 4:37 PM

SampleChannel shows how you can connect together a whole load of simpler ISampleProvider implementors and make them available in a simple class. I may add in a PanningSampleProvider at some point, maybe in the place of the MonoToStereoSampleProvider that is already in there. Depending on your output format from WaveStream you might be already able to insert the PanningSampleProvider in there.