Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!wuarchive!udel!eplrx7!leipold From: leipold@eplrx7.uucp (Walt Leipold) Newsgroups: comp.sys.mac.programmer Subject: Simple Sound Manager question Summary: Type 2 'snd ' resources play too fast. Message-ID: <1991Feb12.184109.20274@eplrx7.uucp> Date: 12 Feb 91 18:41:09 GMT Sender: usenet@ee.udel.edu Organization: DuPont Engineering Physics Lab Lines: 30 Nntp-Posting-Host: louie.udel.edu I use the following procedure to play some short 'snd ' resources: static void playNamedSoundResource(char *s) /* 's' is a Pascal-format string (with leading length byte) */ { Handle h; OSErr e; h = GetNamedResource('snd ',s); if (h != NULL) { e = SndPlay(NULL,h,false); ReleaseResource(h); } } This works fine for type 1 'snd ' resources, but plays the (recommended) type 2 resources (the kind that HyperCard likes) at the wrong sampling rate (too fast). Also, I've noticed that ResEdit (at least the 1.2 vintage) plays these sounds too fast. Does anybody know a simple way to get these type 2's to play correctly, or am I gonna have to get intimate with the Sound Manager chapter? Thanks! ----------------------------------------------------------------------------- Global warming: Everybody's doing something about Walt Leipold the weather, but nobody's talking about it. (leipolw%esvax@dupont.com) ----------------------------------------------------------------------------- -- The UUCP Mailer