Page 1 of 1

Direct access to an objects memory

Posted: Wed Apr 04, 2007 2:16 pm
by me02
Newbie question:
Is it possible to do something akin to the following?

Code: Select all

  open file fName for binary read
  read from file fName until EOF
  put it into rawData
  close file fName
  --  manipulate rawData here...
  put rawData into Sound1
  play audioClip Sound1
I know I can write the entire file back to disk and then read it back in again, but that will *not* solve my problem.

I know I can do this for images, but I need to manipulate sounds.

Thanks for the help...

Re: Direct access to an objects memory

Posted: Fri Apr 27, 2007 1:21 am
by Mark Smith
I don't think it's possible to do what you want, since there doesn't seem to be any property like "the imageData" that you can get at.

Writing it back to disk would seem to be the only way - not much help I'm afraid.

Out of interest, why is writing back to disk a no-no?

Best,

Mark