[comp.sys.mac] Problems Playing 'snd ' Resources -- Need Help

rs4u+@ANDREW.CMU.EDU (Richard Siegel) (08/18/87)

I recently got my hands on some really wild 'snd ' resources that 
were in a HyperCard stack. I want to make system beeps out of them
(I'm using a Mac II), but they won't work. Here's what happens:

	1. With ResEdit, copy the 'snd ' resource of my choice from the
	HyperCard stack.

	2. Paste the resource into the System file.

	3. Quit ResEdit.

The name of the resource appears on the list of sounds, but when I click
on it all I get is the simple beep.

Some more info:

	I wrote a program to loop through all open resource files
and play the 'snd ' resources contained therein. When I get to the
one from the HyperCard stack, SndPlay returns an error code of -206
(badFormat). I decompiled the resource in question and the Simple Beep from
my System file, and found that the first word of the simple beep is $0001
(the standard), while the first word from this other 'snd ' resource
is $0002. Evidently HyperCard customizes this snd resource for its own
purposes...

More: 

	MiniServant (the resource-editor-only part of Servant) has
no problem playing *any* snd resource; if I double click on 
a system beep from my system file, it plays; if I double-click on
a snd resource from this hypercard stack, it plays.

So what's going on? Can anyone help out, preferably someone who's worked with
sounds on the Mac II before? Any assistance would be appreciated...

	-Rich


R-Squared Development Systems
134 Horseshoe Drive
Williamsburg, Virginia 23185
(804) 229-2152 [After 6pm eastern time only]

Arpanet: rs4u@andrew.cmu.edu
Uucp: {your fave gateway}!seismo!andrew.cmu.edu!rs4u

Disclaimer? I don't even KNOW 'er!

"Do you wanna be a cop or a lost cause?"
    -- Sean Connery, in "The Untouchables"