G
Guest
Hello there,
I am programming a simple game for Windows Mobile, managed code C# with .NET
compact framework. In the game, I want to play some sounds (which I've stored
as sound resources in my project) when some actions occur. I found two ways:
The Media.Soundplayer .NET class and the PlaySound API method. I tried both
ways and there is a problem:
The API call to PlaySound just works fine, doesn't have any glitch.
The SoundPlayer.Play method has a serious glitch. The game stucks for about
a second (or half a second) before the sound begins to play. Is there
something wrong with the SoundPlayer.Play method, or am I doing something
wrong?
I am programming a simple game for Windows Mobile, managed code C# with .NET
compact framework. In the game, I want to play some sounds (which I've stored
as sound resources in my project) when some actions occur. I found two ways:
The Media.Soundplayer .NET class and the PlaySound API method. I tried both
ways and there is a problem:
The API call to PlaySound just works fine, doesn't have any glitch.
The SoundPlayer.Play method has a serious glitch. The game stucks for about
a second (or half a second) before the sound begins to play. Is there
something wrong with the SoundPlayer.Play method, or am I doing something
wrong?