I'm trying to create an application where I need sounds to play and pictures to appear at very precise times. So I have a sound that is suppose to play at, let's say 100 ms after something else happened. I'm using SoundPlayer.Play to play the sound on a
Thread.Timer tick and that seems to work. However, the first play is slightly delayed (by ~40-50 ms) because it has to load the .wav file before it can play it. So, I tried using SoundPlayer.Load to load the file before I need to play the sound. However, this
doesn't seem to make a difference. The only way I can make sure the first play occurs at the right time is to play the sound in advance (before opening the Window where all this occurs).
Why doesn't SoundPlayer.Load seem to actually load the wav file completely? And how can I make sure the sound is loaded (preferably without having to play it).
View Complete Post