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