Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!think!ames!amdahl!dlb!dana!rap From: rap@dana.UUCP (Rob Peck) Newsgroups: comp.sys.amiga Subject: Re: Audio Posting Message-ID: <184@dana.UUCP> Date: Mon, 22-Jun-87 12:43:16 EDT Article-I.D.: dana.184 Posted: Mon Jun 22 12:43:16 1987 Date-Received: Tue, 23-Jun-87 04:57:48 EDT References: <182@dana.UUCP> Organization: Dana Computer, Inc., Sunnyvale, CA Lines: 32 Keywords: AmigaWorld audio pdaudio Summary: quick bug note In article <182@dana.UUCP>, rap@dana.UUCP (Rob Peck) writes: > I have sent to amiga-sources-request the audio material from the > Amiga World article. > > Enjoy (and by all means, let me know if you find any bugs.) > > Rob Peck. ...hplabs!dana!rap > Found a bug myself, final version of fix not available yet, but I do know where the bug itself is. Bug is in FinishAudio(). ... if FinishAudio gets called before the audio device has returned everything to be reused, the program can hang waiting for something that will never happen. FinishAudio now has no way to go back and wait for everything to finish before it exits. It checks whether everything is done, but does not do the job completely. The fix is to keep track of how many audio requests are outstanding for all channels combined, and go back to waiting on the reply port and emptying the port, decrementing the count, until the count on all channels is zero. Will post the fix as soon as I have it available. Just thought I'd let everyone know (found problem while creating PlayFreq, queued up 400 freqs, and decreased the Delay value; static iob got reused, FinishAudio got called before dynamics all got freed, showed the problem.). Rob Peck. ...hplabs!dana!rap