Path: utzoo!attcan!uunet!wugate!wuarchive!texbell!uhnix1!sugar!karl From: karl@sugar.hackercorp.com (Karl Lehenbauer) Newsgroups: comp.sys.amiga.tech Subject: Re: timer device problems Message-ID: <4103@sugar.hackercorp.com> Date: 12 Aug 89 18:42:26 GMT References: <16074@pasteur.Berkeley.EDU> Distribution: comp Organization: Sugar Land Unix - Houston Lines: 17 In article <16074@pasteur.Berkeley.EDU>, johnhlee@cory.Berkeley.EDU (Vince Lee) writes: > To de-allocate the buffer, I set up the timer device to > flag me when I've calculated the sample will have finished playing. Why don't you just free it when you get reply messages from audio.device from all the pending requests to play that sound? > The programs plays sound effects in response to events in the input stream > (key clicks, disk insertion, etc) The samples are stored in fast RAM, and > instantaneously copied to a chip buffer (which is allocated on the fly) > before playing. ...exactly how 'chatterbox' works; it's waiting to be shipped out by the moderator. -- -- uunet!sugar!karl Official Opinions of Hackercorp -- Clip and Save -- free Usenet access: (713) 438-5018