Blitz (74/176)

From:amorel
Date:21 Jul 2001 at 23:58:28
Subject:offset

Say I want to read data from a sound sample into an array using peeksound.
What exactly should the offset be? I did this:

soundsize.l=exists(soundfile$)
Dim soundarr.l(soundsize)
For teller.l=0 To soundsize
soundarr(teller)=XBPeekSound(soundnr,teller)
Next

But I expected it to not work, which it doesn`t. I was thinking that upping
the offset by one is the same as going one byte up. And so peeking in it reads
one byte into the array. The error I get is data offset too large.

I`m sure it`s easy, but what should I do to get it to work?

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