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

Method SetSoundPitching

CrySystem/ScriptObjectSound.cpp:738–756  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

736//////////////////////////////////////////////////////////////////////////
737//////////////////////////////////////////////////////////////////////////
738int CScriptObjectSound::SetSoundPitching(IFunctionHandler *pH)
739{
740 CHECK_PARAMETERS(2);
741 int nCookie=0;
742 float fPitching=0;
743 ISound *pSound=NULL;
744
745
746 pH->GetParamUDVal(1,(INT_PTR &)pSound,nCookie); //AMD Port
747 pH->GetParam(2,fPitching);
748
749
750 if (pSound && (nCookie==USER_DATA_SOUND))
751 {
752 pSound->SetPitching(fPitching);
753 }
754
755 return pH->EndFunction();
756}
757/////////////////////////////////////////////////////////////////////////////////
758/////////////////////////////////////////////////////////////////////////////////
759int CScriptObjectSound::GetListener(IFunctionHandler *pH)

Callers

nothing calls this directly

Calls 4

EndFunctionMethod · 0.80
GetParamUDValMethod · 0.45
GetParamMethod · 0.45
SetPitchingMethod · 0.45

Tested by

no test coverage detected