Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!boingo.med.jhu.edu!haven!mimsy!mojo!russotto From: russotto@eng.umd.edu (Matthew T. Russotto) Newsgroups: comp.sys.mac.programmer Subject: Re: Mac sounds to Sparc Message-ID: <1991Mar27.180045.15689@eng.umd.edu> Date: 27 Mar 91 18:00:45 GMT References: <1991Mar27.015629.9536@oracle.com> Sender: news@eng.umd.edu (C-News) Organization: College of Engineering, Maryversity of Uniland, College Park Lines: 19 In article <1991Mar27.015629.9536@oracle.com> dpawson@oracle.com () writes: >Hey folks, > Sorry - I'm sure this has been covered before, but I never was particularly >interested in the past. Does anybody have any experience playing Mac sampled >sounds on a Sparc? If so, please drop me a note telling me what I am missing. >I sampled at 7.4 khz on the Mac, then transferred to a Sparc using binary mode >ftp. When I play back, my sounds are *very* loud, and while the true message >is barely audible in the background, it sounds remarkably like a vacuum >cleaner. A guess: Mac sounds are in 'offset binary'-- the position of the speaker changes continuously as you move from 0 to 255. Sparc sounds are probably in two's complement, which would mean that the speaker position would change continuously from 0 to 127, with a discontinuity at 128 (-128), and then move continuously from 128 (-128) to 255 (-1). Try subtracting 128 from each byte in the mac file. -- Matthew T. Russotto russotto@eng.umd.edu russotto@wam.umd.edu .sig under construction, like the rest of this campus.