Path: utzoo!attcan!uunet!lll-winken!elroy.jpl.nasa.gov!usc!snorkelwacker!bloom-beacon!eru!luth!sunic!tut!funic!santra!hila.hut.fi!jmunkki From: jmunkki@hila.hut.fi (Juri Munkki) Newsgroups: comp.sys.mac.programmer Subject: Re: Simultaneously played digitized sounds Keywords: divide Message-ID: <1990Jul9.104648.23538@santra.uucp> Date: 9 Jul 90 10:46:48 GMT References: <1032@swan.ulowell.edu> <36690003@hpindwa.HP.COM> <25974@pasteur.Berkeley.EDU> Sender: news@santra.uucp (Cnews - USENET news system) Reply-To: jmunkki@hila.hut.fi (Juri Munkki) Organization: Helsinki University of Technology, FINLAND Lines: 15 In <25974@pasteur.Berkeley.EDU> eta@ic.Berkeley.EDU.UUCP (Eric T. Anderson): >Hey -- be careful. You know you're throwing away bits for no reason >if you pre-divide. How about add first and then post-divide? On a >Mac, doing byte-addition is just as quick as 16-bit addition (except >if you're adding constants). Right? Every cycle counts when you are doing things like this. I found it optimal to pre-divide. I also used only 11 Khz sound. Doing two 11 Khz sounds with pre-divide doesn't add all the much overhead, so my animation routine were not hurt too badly. Two sound channels is infinitely better than just one. \ Ws H / \ iu Juri Munkki Macintosh Support jmunkki@hut.fi PS / / nr Helsinki University of Technology, Computing Centre 4X \ / df 8 \