From: | amorel |
Date: | 23 Jul 2001 at 12:55:21 |
Subject: | Re: offset |
On 23-Jul-01, John Mason wrote:
C=> if teller=1 to soundsize
C=> soundarr.l(teller)=xbpeeksound(soundnr,teller-1)
C=> etc....
C=Fair enough, but shouldn't it be:
C=soundarr.l(teller-1)=xbpeeksound(soundnr,teller-1)?
Thgat wouldn`t matter much.
I`ve been trying with a smaller value into soundsize(more or less random try
outs), like soundzie/2(6 7 8) and soundsize-3000 etc. And it appeared dividng
by 2 got rid of the error, so did minus 3000, but NOT minus 10. I am kinda
lost as I don`t see a pattern here.
I tried to use the length stored in the sound structure this way:
*mysound.sound=Addr XBSound(soundnr)
Dim soundarr.w(*mysound\_length)
For teller.l=0 To *mysound\_length
soundarr(teller)=XBPeekSound(soundnr,teller)
Next
Which did work and after trying a crude drawing of the array in a window it
seems to show the sample. I`d like to know if this is the right way then.
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