//////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// ! Stop playing a sound @param nID ID of the sound */
| 777 | @param nID ID of the sound |
| 778 | */ |
| 779 | int 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 |
nothing calls this directly
no test coverage detected