Yes.Originally Posted by WILL
[pascal]Chuck := @MemoryAddress^; // Get Address I need
[/pascal]
If MemoryAddress is a pointer, [pascal]Chuck := MemoryAddress;[/pascal] is ok too.
The format for signed and unsigned values depends on how you treat the array:Originally Posted by WILL
[pascal]var
Bob: shortint;
Chuck: pshortint;
Chuck := @MemoryAddress^; // access same memory
Bob := Chuck^; // Read signed data I need
inc(Bob); // Mess with it...
Chuck^ := Bob; // Stick it back in there how I need it![/pascal]
The values that are over 127 will be negative now.
As for the OpenAL issue... try to feed it with signed data and see what happens, if it treats the data as signed values internally, it should work.
Bookmarks