Quick question: Are you looking to implement a _NEWSOUND type command so we can _MEMPUT information to it directly?
For example:
I = _NEWIMAGE(640,480,32)
M = _MEMIMAGE(I)
_MEMPUT M, M.OFFSET, image_data()
The above can take a memblock that we saved to disk, and upload it up into a new image handle, so we can then _PUTIMAGE it, or work with it the same as any other image.
Will we be able to do something like:
S = _NEWSOUND(123, 441000, 1) 123 seconds at 44100 sndrate, with 1 channel
DIM M AS _MEM
M = _MEMSOUND(S, 1)
CALL Load_Routine ‘Load sound data from disk
_MEMPUT M, M.OFFSET, Sound_Data()
SNDPLAY S