I am trying to play audio from a resource using .NET Compact Framework. I added an audio file for the resource property in my application and am trying to use the below samp
This should work for you:
Stream str = Properties.Resources.YourWaveSoundFile; SoundPlayer plyr = new SoundPlayer(str); plyr.Play();
Make sure you have using System.Media above your namespace.
using System.Media