NAudio icon indicating copy to clipboard operation
NAudio copied to clipboard

AudioPlaybackEngine lagging

Open CocoaMix86 opened this issue 2 years ago • 1 comments
trafficstars

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.

CocoaMix86 avatar May 03 '23 17:05 CocoaMix86

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

markheath avatar Nov 28 '23 14:11 markheath