[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Moving binary files to /RAM
- Subject: Re: Moving binary files to /RAM
- From: email@DELETE_THIS.luddite.no-ip.com (Simon Williams)
- Date: Sun, 30 Jan 2005 05:23:53 GMT
- Newsgroups: comp.sys.apple2
- Organization: Luddite Enterprises
- References: <1gr4l27.10w3ygd1bycnoyN%email@DELETE_THIS.luddite.no-ip.com> <10vngq9175mp5e5@corp.supernews.com> <1gr5fun.1pixfg1vgp896N%email@DELETE_THIS.luddite.no-ip.com> <10vo7oktk9co5c0@corp.supernews.com> <1gr5zon.d2hs7hoiep0yN%email@DELETE_THIS.luddite.no-ip.com> <cthkrn$p8p$1@unlnews.unl.edu>
- User-agent: MacSOUP/2.4.6
- Xref: g2news1.google.com comp.sys.apple2:7637
Ed Eastman <noone@nowhere.net> wrote:
> Simon Williams wrote:
> > I have 16 samples named "A"..."P", each 3072 bytes copied to
> > /RAM/SAMPLES/ I'm using this code to play them in order: 160 FOR F = 65
> > TO 80 170 PRINT CHR$(4)"BLOAD /RAM/SAMPLES/" CHR$(F) ",A$2000" 180 CALL
> > 35840 : REM DAC522 190 NEXT F What happens, oddly enough, is that the
> > first 12 samples play back-to-back as one would hope, but then there is
> > a noticeable delay between the last four. I've tried this on a IIe, IIgs
> > and IIc+ with the same result... Any ideas...?
>
> Insert a FRE(0) at line 185... Oh wait, that is a Dos 3.3 only command. I
> still wonder about variable garbage collection in ProDOS. Nevermind. :)
>
> What if you change the loop to if a if goto instead of for/next?
Same problem... possibly a little less delay, but still very noticeable.
> Do you last 4 samples have a silent leader? Try playing the first sound
> 16 time instead and see if you still get the delay on the last 4 iterations.
The samples are all identical in length and have audio starting at byte
0... I tried reversing the loop so that they play in reverse order, in
which case the _first_ 4 samples had the delay...
<some time later...>
Well, I've tried every combination that I can think of and the result
seem to be that the delay is related to the order in which the BIN files
are copied to /RAM. No matter what order I BLAOD them it always takes a
lot longer for the last four in the directory. Is it that ProDOS has a
hard time seeing anything past 12 files??? I'm annoyed and perplexed...
-s
--
._____.
|[LD8]! SIMON WILLIAMS :: LUDDITE ENTERPRISES UNLIMITED
| (O) | 68K MACINTOSH SERVER http://luddite.no-ip.com
!__!__! FAILURE RECORDS http://failurerecords.no-ip.com