I am using the following code to play a wav file. I want the have the file play over and over until the user clicks a button. How might I do this?
Stream stream = TitleContainer.OpenStream("Audio/ape.wav");
SoundEffect effect = SoundEffect.FromStream(stream);
FrameworkDispatcher.Update();
effect.Play();