Blitz (84/176)

From:amorel
Date:23 Jul 2001 at 22:36:02
Subject:Re: offset

On 24-Jul-01, John Mason wrote:

C=Looks right. Is there a pointerin the sound structure to the sound data?
C=If so you could just copymem_ instead of using a for loop to copy the
C=sample.

Yes the first item of the sturcture is a pointer to the sound data. How silly
I didn`t think of that, but oh well. You can read the sturctures of Blitz
objects in the file "bb2objtypes.bb2" which I actually didn`t find out before
too long ago, duh ;-)

I could just use the original data for stuff like displaying, which doesn`t
change the data. But how would copymem_ work then and how would I read the
sounddata?

Say I do this:

*mysound.sound=addr xbsound(soundnr)
*soundpointer.l=*mysound\_data

How to access any byte of that data?

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