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
I got the solution. This code is working very well in .NET Compact Framework:
// Convert a byte array to a stream
using (var audioStream = new MemoryStream(Properties.Resources.full_song_wav))
{
using (var player = new SoundPlayer(audioStream))
{
player.Play()
}
}