Hello. I am using monogame 3.2 on Linux Mint 17 using MonoDevelop 4.0.12. I have some experience with XNA. My current goal is to get the basics down in monogame without relying on XNA at all.
I’m using the simplified audio API and loading some testing content using IO streams.
System.IO.Stream stream3 = TitleContainer.OpenStream("Content/Audio/TearsInHeaven.wav"); sound = SoundEffect.FromStream (stream3);
After loading the audio file, I can have it play as expected.
However, this does not allow for enough control over the audio playing. An instance can help with that.
soundInstance = sound.CreateInstance();
I then call the play method on it (when the A button is pressed on the controller). It is the method described here: http://www.monogame.net/…
This does not work unless I put a breakpoint on the line calling Play() and execute the code in debug mode.
I was hoping someone could help me out here because I cannot figure it out. I must be doing something wroing, but I don’t know what.
I also started looking at the monogame framework code, but I am not (yet) knowledgeable enough about these things to make any real progress. Thanks in advance to anyone who has input, I will also keep looking and report back if I can figure it out.