Parameters |
Description |
sound |
Sound identifier. |
isRelative |
True if the pause is relative, false otherwise. |
Syntax: Sound.SetSoundRelative(ISound* sound, bool isRelative)
Sets/unsets the RELATIVE Flag. If unset, a new valid position has to be set, or the sound stays at the last listener position.
!
int CScriptBind_Sound::SetLoopPoints(IFunctionHandler *pH) { SCRIPT_CHECK_PARAMETERS(3);
int nID = 0, iLoopPt1, iLoopPt2; int nCookie=0; _smart_ptrpSound = GetSoundPtr(pH,1);
pH->GetParam(2, iLoopPt1); pH->GetParam(3, iLoopPt2); if (pSound) pSound->SetLoopPoints(iLoopPt1, iLoopPt2);
return pH->EndFunction(); }
!
int CScriptBind_Sound::AddSoundFlags(IFunctionHandler *pH) { int iFlags; int nCookie=0; ISound *pISound = NULL; SCRIPT_CHECK_PARAMETERS(2);
pH->GetParamUDVal(1,(int &)pISound,nCookie); pH->GetParam(2, iFlags);
if (pISound && (nCookie==USER_DATA_SOUND)) pISound->AddFlags(iFlags);
return pH->EndFunction();
Copyright (c) 2012. All rights reserved.
|