Open JernejL opened 6 years ago
Indeed:
Delphi Example :
// Calculate the argument to SetVolume from a decibel value function XAudio2DecibelsToAmplitudeRatio(Decibels: FLOAT): FLOAT; {$IF CompilerVersion >= 18.0} inline; {$ENDIF} begin Result:= power(10.0, Decibels / 20.0); end;
Compilerversion 18.0 = Delphi 2007
inline is nowdays fully supported in later versions of delphi and in freepascal.