문제

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