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]