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

Method StopSound

CrySystem/ScriptObjectSound.cpp:779–792  ·  view source on GitHub ↗

//////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// ! Stop playing a sound @param nID ID of the sound */

Source from the content-addressed store, hash-verified

777 @param nID ID of the sound
778*/
779int CScriptObjectSound::StopSound(IFunctionHandler *pH)
780{
781 CHECK_PARAMETERS(1);
782 int nCookie=0;
783 ISound *pSound=NULL;
784 pH->GetParamUDVal(1,(INT_PTR &)pSound,nCookie); //AMD Port
785
786 if (pSound && (nCookie==USER_DATA_SOUND))
787 {
788 pSound->Stop();
789 }
790
791 return pH->EndFunction();
792}
793/////////////////////////////////////////////////////////////////////////////////
794/////////////////////////////////////////////////////////////////////////////////
795/*! Change the position of a 3D sound

Callers

nothing calls this directly

Calls 3

EndFunctionMethod · 0.80
GetParamUDValMethod · 0.45
StopMethod · 0.45

Tested by

no test coverage detected