noeska
24-02-2008, 09:33 PM
Languages: c++/delphi
During the conversion of the efx extension for openal i come accros a struct that for the moment confuses me.
What is this? Is it a record, or is it a function? Or is it a record to an pointer?
typedef struct _EAXOBSTRUCTIONPROPERTIES
{
long lObstruction;
float flObstructionLFRatio;
} EAXOBSTRUCTIONPROPERTIES, *LPEAXOBSTRUCTIONPROPERTIES;
And most importanty how do i write this in delphi?
This i how i think it should be done, but i am NOT sure.
_EAXOBSTRUCTIONPROPERTIES = record
lObstruction: int64;
flObstruction: single;
end;
LPEAXOBSTRUCTIONPROPERTIES = ^_EAXOBSTRUCTIONPROPERTIES;
During the conversion of the efx extension for openal i come accros a struct that for the moment confuses me.
What is this? Is it a record, or is it a function? Or is it a record to an pointer?
typedef struct _EAXOBSTRUCTIONPROPERTIES
{
long lObstruction;
float flObstructionLFRatio;
} EAXOBSTRUCTIONPROPERTIES, *LPEAXOBSTRUCTIONPROPERTIES;
And most importanty how do i write this in delphi?
This i how i think it should be done, but i am NOT sure.
_EAXOBSTRUCTIONPROPERTIES = record
lObstruction: int64;
flObstruction: single;
end;
LPEAXOBSTRUCTIONPROPERTIES = ^_EAXOBSTRUCTIONPROPERTIES;