Thanks for the answers to everybody.
The average size of a saved file is 200-300KB, so is not that big, but 
the number of saved files may be between really big (up to thousands).
> Never, ever, write a record to disk if it isn't declared as "packed." 
>   
The speed is important in this piece of code!
So how can I unpack it after I load it from disk?
Should I load the packed version of CromaMX from disk then move it into 
a non-packed array for speed?
How? Direct assignation won't work, System.Copy won't work also. The 
only way will be to copy elements one by one in a for loop. Is this the 
best way?

var
 CromaMX       = packed array of TSample;
 CromaMXFast =            array of TSample;
begin
 LoadFromDisk(CromaMX);
 CromaMXFast:= CromaMX;        <-- won't work
end;

-----

Second problem:

I suppose that if CromaMX is a packed array of TSample, then TSample 
should be also packed. Right?


_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to