//////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// ! Changes the pitch of a sound sound @param nID ID of the sound @param nFrequency Frequency, value range is between 0 and 1000 */
| 715 | @param nFrequency Frequency, value range is between 0 and 1000 |
| 716 | */ |
| 717 | int CScriptObjectSound::SetSoundFrequency(IFunctionHandler *pH) |
| 718 | { |
| 719 | CHECK_PARAMETERS(2); |
| 720 | int nCookie=0; |
| 721 | int nFrequency=0; |
| 722 | ISound *pSound=NULL; |
| 723 | |
| 724 | |
| 725 | pH->GetParamUDVal(1,(INT_PTR &)pSound,nCookie); //AMD Port |
| 726 | pH->GetParam(2,nFrequency); |
| 727 | |
| 728 | |
| 729 | if (pSound && (nCookie==USER_DATA_SOUND)) |
| 730 | { |
| 731 | pSound->SetPitch(nFrequency); |
| 732 | } |
| 733 | |
| 734 | return pH->EndFunction(); |
| 735 | } |
| 736 | ////////////////////////////////////////////////////////////////////////// |
| 737 | ////////////////////////////////////////////////////////////////////////// |
| 738 | int CScriptObjectSound::SetSoundPitching(IFunctionHandler *pH) |
nothing calls this directly
no test coverage detected