From: | amorel |
Date: | 3 Aug 2001 at 14:44:30 |
Subject: | Re: Drawing a sample |
On 03-Aug-01, David McMinn wrote:
C=I wrote a small test program and disassembled it. The way the Blitz
C=executables work, there does not need to be a limit to the size of arrays
C=because it uses a longword for the index (shifted left to get the correct
C=size for each item) and adds that to the address of the array (using an
C=ADD instruction, not an addressing mode).
So why is there a limit?
C=Actually, I've just tested another exe, with a newtype, and it uses the
Yeah forgot to say I did test it with newtype arrays also and yes it did limit
to 64k.
C=You could get around this by making up a big newtype. So that would give
C=you more range for your 65535 items, i.e.
Might be worth a try.
C=Alternatively you could allocate some memory and peeking from it to get
C=the sample values to draw. Or perhaps one of the 3rd party libraries that
C=have maths or matrix commands in it would be capable of doing this.
I use peeksound at the moment. Could also copy the soundobject to another
number if edits to the sound need a redo, but that`s another concern.
Regards
-*R u an AOL l33t? ----------> Amoralplayer1.5, a no fuss audioplayer*-
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie