Domanda

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.

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top