From: | John Mason |
Date: | 23 Jul 2001 at 23:47:44 |
Subject: | Re: offset |
On Mon, 23 Jul 2001, amorel wrote:
> C=Fair enough, but shouldn't it be:
> C=soundarr.l(teller-1)=xbpeeksound(soundnr,teller-1)?
> Thgat wouldn`t matter much.
Well if would if the maximum of your array was teller-1, but it isn't :)
> 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.
Can you send me your code? I don't know why this wouldn't work and I
can't get my head around it just by looking at it...
> *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.
Looks right. Is there a pointerin the sound structure to the sound data?
If so you could just copymem_ instead of using a for loop to copy the
sample.
John Mason -- ICQ 17931257
http://chebucto.ns.ca/~ah210/Profile.html
Home of Wibby, NewStuff, and Reminder!
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie