I have a 4 channel ogg and wav file, I want to play each channel separately, like filtering. I have a stereo speaker what I want is when I pick a channel-1 speaker will only play the audio of channel 1.

I tried to dig in Naudio but can't figure it out for this purpose.

Any help would be so appreciated.

Thank you.

有帮助吗?

解决方案

With NAudio, you can make use of the MultiplexingSampleProvider to route specific inputs to outputs. Read more about it here. This may meet your needs for multi-channel WAV playback.

NAudio does not currently include support for ogg playback, so you'd need to find an extension to do that (there are a few based on NVorbis).

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top