Frage

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.

War es hilfreich?

Lösung

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).

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top