If you can make your sound file a wav file:
using System.Runtime.InteropServices;
///in a class WaveSound, have:
public static void PlaySound()
{
String fileName = @"C:/Windows/Media/tada.wav";
PlaySound(fileName,0,1);
}
[DllImport("winmm.dll")]
private static extern bool PlaySound(string lpszName, int hModule, int
dwFlags);
and then when you want to play the sound
WaveSound.PlaySound();
Du Dang said:
i'm making an alarm clock
and i wanna allow the user to choose their own wake up tune
which method is the best way to go ???
thanks