문제

I'm working on a program that I want to have some audio output. I would use System.Media.SoundPlayer, except that the data is generated dynamically and in real time. I really just want to set the speaker to a single byte value, and change that value when needed. Any buffers or streams would make this overly complicated.

도움이 되었습니까?

해결책

You can't. System.Media.SoundPlayer works on streams, either dynamically generated like you want or generated from a file.

Learn to work with streams. They're not complicated. Certainly less complicated then dynamically generating audio.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top