Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Playing .wav from resource

Status
Not open for further replies.

jjschwartz

Technical User
Feb 3, 2004
23
US
I'm trying to play a .wav file which is stored as a resource.

Searching over the Internet, there seems to be two ways.

One uses PlaySound(resourcename,0,SND_RESOURCE or SND_NODEFAULT), which seems real easy.

The other uses SndPlaySound and involves finding, locking and freeing the resource, using pointers and handles, etc. For a Delphi newbie, that seems pretty complicated.

Is there a reason to prefer one method over the other? I'm kind of scared to start playing with handles and pointers while my feet are still getting wet.

TIA,
Jeffrey Schwartz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top