This project has moved. For the latest updates, please go here.

Couple Questions

Jul 19, 2012 at 8:52 PM

Hello,

Is it possible to play a wave file out of the left or right channels only, aka a balance control?

What method returns the total length of a wave file?

Thanks,

kingneb

Jul 20, 2012 at 12:26 PM

Anyone?

Jul 21, 2012 at 8:39 AM

Yes, it is possible. I would use Multiplexing wave provider (Mark posted a tutorial on his blog: http://mark-dot-net.blogspot.com/).

WaveStream class has Length property which will tell you the length in samples of the wave file.

Coordinator
Jul 21, 2012 at 9:54 AM

Legoless is right if you want to simply route signals to different outputs rather than mix the levels.

I have a feeling that WaveChannel32 has a balance/pan implementation. It would also be easy to create your own panning logic if you are using the new ISampleProvider interface