Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!apple!claris!scott From: scott@claris.com (Scott Lindsey) Newsgroups: comp.sys.apple Subject: Re: Mac and GS sounds Message-ID: <8981@claris.com> Date: 28 Feb 89 02:54:24 GMT References: <8902270353.aa06297@SMOKE.BRL.MIL> Organization: Claris Corporation, Mountain View CA Lines: 23 From article <8902270353.aa06297@SMOKE.BRL.MIL>, by AWCTTYPA@UIAMVS.BITNET ("David A. Lyons"): >>the same format as the gs, so porting sound from the Mac to GS would be >>possible. Anybody have any info, knowledge, or just plain cold hard facts >>about this? > > On format that is sometimes used on both machines is just a plain > sequence of uncompressed bytes, from 1 to 255. That format is no > problem--I've moved sounds between systems before. (Just from Mac > to GS, I guess, but the other direction shouldn't be much harder.) There is a slight problem with the sound format that I ran into. It has to do with the amplitude notation. A 0 byte in tells the generator to stop, so if you have any 0's in the data, it gets distorted (this can be remedied by changing the 0's to 1's). Also, a value of 0x80 is zero amplitude (rather than 0 or 1), so any trailing 0's in the sound should be converted to 0x80's. -- Scott Lindsey, wombat | UUCP: {ames,apple,portal,sun,voder}!claris!scott Product Development | Internet: scott@claris.com | AppleLink: LINDSEY1 Claris Corp. | These are not the opinions of Claris, Apple, (415) 960-4070 | StyleWare, the author, or anyone else living or dead.