Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!apple!REEKES@applelink.apple.com From: REEKES@applelink.apple.com (Jim Reekes) Newsgroups: comp.sys.mac.programmer Subject: Re: Complex sound manager question (for experts only!) Message-ID: <13052@goofy.Apple.COM> Date: 14 Apr 91 22:12:27 GMT References: <1584@babcock.cerc.wvu.wvnet.edu> Sender: usenet@Apple.COM Lines: 24 In article <1584@babcock.cerc.wvu.wvnet.edu>, vrm@blackwater.cerc.wvu.wvnet.edu (Vasile R. Montan) writes: > program SndTest; > uses > Sound; > var > Harpsichord: Handle; > result : OSErr; > begin > Harpsichord := GetResource('snd ', 190); {Load in the sound} > Result := SndPlay(nil, Harpsichord, FALSE); {Play it} > DisposHandle(Harpsichord); {Do not litter} > end. > > Result ends up being 0, indicating that nothing went wrong, but there > is no sound to be heard. What's wrong? I don't see anything wrong with this code. I suspect you have a bad snd resource. Try other snds. And you should mention the System version you're running, and the version of HyperCard you took the sound from. There's a Tech Note about HyperCard's sounds being incorrect. Jim Reekes Sound Manager Engineer