[comp.sys.mac.programmer] HELP! Sound Manager woes

essam@gagme.chi.il.us (Essam Khairullah) (02/14/91)

I've got an INIT that patches SystemTask and then pops up a dialog
sometime in the future and I want to attach a specific sound to 
that dialog (ei. not the SysBeep sound).

I am trying to keep the sound in memory at all times, so I read in my
sound with GetResource, then DetachResource so that my INIT's resource
file can close and then try to play it with SndPlay, but SndPlay
complains because my sound is not a handle to a resource.

How can I work this?  If I don't DetachResource, won't my resource file
have to stay open at all times?  SoundMaster does what I need and it
uses generic SoundCap files (or MacRecorder sound files or whatever).
How can I go this route?  What am I doing wrong?

Any advice you can give me will be greatly appreciated.

--Essam

-- 

Essam Khairullah					essam@gagme.chi.il.us

I don't got no fancy signature.