NAudio
NAudio copied to clipboard
AudioPlaybackEngine lagging
Hey Mark, Wanted to reach out to you to get some insight on a problem I'm having that utilizes NAudio.
I've implemented this AudioPlaybackEngine from your Fire and Forget article. It works very well! Except for sometimes when executing sounds at fast intervals, some sounds either don't play or lag.
Please see my stackoverflow post.
sorry for the late response. The fire and forget engine is fine for a computer game scenario, but if you want accurate timing, then a different approach of mixing all your sounds into one continuous stream of audio is needed. In the WPF NAudio demo there is a very basic drum machine sample that gives an example of how this could be achieved