MCPcopy Create free account
hub / github.com/StrongPC123/Far-Cry-1-Source-Full / SetLoopPoints

Method SetLoopPoints

CrySystem/ScriptObjectSound.cpp:881–896  ·  view source on GitHub ↗

! */

Source from the content-addressed store, hash-verified

879/*!
880*/
881int CScriptObjectSound::SetLoopPoints(IFunctionHandler *pH)
882{
883 CHECK_PARAMETERS(3);
884
885 int nID = 0, iLoopPt1, iLoopPt2;
886 ISound *pISound = NULL;
887 int nCookie=0;
888 pH->GetParamUDVal(1,(INT_PTR &)pISound,nCookie); //AMD Port
889 pH->GetParam(2, iLoopPt1);
890 pH->GetParam(3, iLoopPt2);
891 if (pISound && (nCookie==USER_DATA_SOUND))
892 pISound->SetLoopPoints(iLoopPt1, iLoopPt2);
893
894
895 return pH->EndFunction();
896}
897
898/*!
899*/

Callers

nothing calls this directly

Calls 3

EndFunctionMethod · 0.80
GetParamUDValMethod · 0.45
GetParamMethod · 0.45

Tested by

no test coverage detected