View Single Post
Old 08-22-2004, 11:22 AM
OnErr0r's Avatar
OnErr0r OnErr0r is offline
Obsessive OPtimizer

* Guru *
Join Date: Jun 2002
Location: Debug Window
Posts: 13,775
Default Play WAV Sounds directly from a Win32 Resource

I've seen several examples of playing Wavs from .net resources, but these all require a buffer in your application to play the sound. PlaySound API can play a resource wav directly from a Win32 resource. The executable is included so you can see it actually works, once you have the resource compiled into the exe. Please read the included readme.txt for instructions.
Attached Files
File Type: zip (89.2 KB, 312 views)
Quis custodiet ipsos custodues.
Reply With Quote