-
Accessing Byte values from a block of allocated memory...
This should be a simple one.
ok lets say I've allocated some memory to store audio data in one of my objects using:
lets assume
[pascal]var SamplePtr: Pointer;
SampleSize: Word;[/pascal]
and then
[pascal]GetMem(SamplePtr, SampleSize);[/pascal]
then
[pascal]ReadBlock(FileStream, SamplePtr^, SampleSize);[/pascal]
now...
How do I access this 8-bit audio data as if it were simply an array of Byte values? Or in some other similar way. Some code would be great.
[size=7px]I can't believe I've never done this in Win32 before.[/size]
Jason McMillen
Pascal Game Development
Community Leader / Webmaster / Co-Founder

Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
http://flippulseimages.com/Cartoons/hydrogen.html