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