// Copyright © 1995 Apple Computer, Inc. All rights reserved.

// Open the resource file that contains the sound, and assign the
// file ID to a temporary variable rf
// NOTE: specify the full pathname from your hard drive down...
rf := OpenResFileX(home & "resources"); 

// Read in the 11KHz sampled sound
DefConst('kBoingSound, GetSound11("Boing")) ;

// close up any resource files that were opened (VERY important)
CloseResFileX(rf);