[comp.sys.amiga] Audiotools

dca@kesmai.COM (David C. Albrecht) (07/30/87)

I picked up Rob Peck's audiotools to put them in Air Warrior
so that it could make some noise.  For my application digitized
sound is preferable but it will have to wait till I hack up
an iff sound reader and reproducer which I figure will take
much longer than installing this tool set did.  Thanx Rob.

I, of course, found a bug.  Air Warrior opens the audio device
when it goes into flight and closes it when you exit flight.
After many cycles of this, I would be unable to allocate
a port.  A little poking around and I found that the new
feature that Rob added for version 2 (the user port) was
not being deallocated in FinishAudio.  Solution follows:

-------- Line  193 of 'audiotools2.c' ----
---   DeletePort(uport);
---

David Albrecht

rap@dana.UUCP (Rob Peck) (10/12/87)

I found another bug in the audiotools, surprized that it took so long
to surface.  Problem is in the call to AllocMem in GetIOB()...
The qualifier should be MEMF_CLEAR instead of MEMF_FAST | MEMF_CLEAR.

What happens is that when the system runs out of static i/o blocks and
tries to allocate one dynamically, if you have a 512k system with no
FAST RAM, the call fails and as the audiotools release 2 example is
written, the example program sleeps forever waiting for a message that
will never arrive.  Making the above change lets GetIOB use either
chip or fast RAM, solving the problem.

Rob Peck		...ihnp4!hplabs!dana!rap

vanam@pttesac.UUCP (Marnix van Ammers) (10/15/87)

In article <242@dana.UUCP> rap@dana.UUCP (Rob Peck) writes:
>I found another bug in the audiotools, surprized that it took so long
...
>Rob Peck		...ihnp4!hplabs!dana!rap

Could someone *please* tell me how I can get a hold of the
disk which contains the examples in Rob Peck's book.  I'm at
work and don't have the name of the book with me.  It's one
of the best books for the Amiga though and has the word
"Programmer" in its title.  The examples in the book have
some typos and were changed (I think) by some kind of
reformatter.

I have sent mail to Mr Peck at least 2 times regarding this
disk, but either my mail doesn't get to him, or he is too
busy to answer.  Any help will be greatly appreciated.

Marnix
----