how can i stop looping sound in c# (visual studio)
if (ConditionTrue)
{
SoundPlayer simpleSound = new SoundPlayer(@"C:\Users\BIB HUTI\Desktop\beep.wav");
simpleSound.Play();
}
// it keeps playing and never stops.