Guest thesb Posted March 16, 2006 Report Posted March 16, 2006 How easy is it to play a wav from a resource rather than from the disk. Does anyone have a link to a site that explains this? Or maybe someone could type up a really quick example? I'm not much of a programmer at all, but I can usually get the job done with enough research. I'm wanting to have a plain program where you simply press a button,and it plays a small wav file, or even a midi file if that is easier. Thanks.
Guest mgama Posted March 30, 2006 Report Posted March 30, 2006 Playing a wav file is easier. IIRC, playing a midi requires a bunch of other stuff. http://msdn.microsoft.com/library/default...._Identifier.asp In my project (an MFC based app :| ), I use: PlaySound(MAKEINTRESOURCE(IDR_WAVE1),::AfxGetResourceHandle(),SND_RESOURCE | SND_SYNC);
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now