🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #864

Re: timer device problems

#864
From: Karl Lehenbauer
Date: Sat, 12 Aug 1989 18:42
17 lines
1182 bytes
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
Technical Details
Message-ID: <4103@sugar.hackercorp.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!wugate!wuarchive!texbell!uhnix1!sugar!karl
References: <16074@pasteur.Berkeley.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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