Blitz (79/176)

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



-*AMOREL*- musician/programmer \ \ Amiga 1200T/PPC/040/32/6g more shit
http://www.xs4all.nl/~amorel \ \ Good old C=64 and an attitude!
Running QNX rtp, linux, AmigaOS \ \ / /Half a decent studio
Music: www.mp3.com/vopak \ \/ /Contact me for bookings,
www.xs4all.nl/~amorel/amusic.html \/\/productions,demos,programs...

-*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