///////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////
| 736 | ////////////////////////////////////////////////////////////////////////// |
| 737 | ////////////////////////////////////////////////////////////////////////// |
| 738 | int 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 | ///////////////////////////////////////////////////////////////////////////////// |
| 759 | int CScriptObjectSound::GetListener(IFunctionHandler *pH) |
nothing calls this directly
no test coverage detected