| 280 | } |
| 281 | |
| 282 | void set_pitch(S32 which, F32 pitch, U32 handle) |
| 283 | { |
| 284 | sound_config* s = &sounds[which]; |
| 285 | |
| 286 | if (s->id == 0) |
| 287 | { |
| 288 | for (S32 i = s->first; i <= s->last; ++i) |
| 289 | { |
| 290 | zEntPlayer_SNDSetPitch((_tagePlayerSnd)i, pitch); |
| 291 | } |
| 292 | return; |
| 293 | } |
| 294 | |
| 295 | if (handle == 0) |
| 296 | { |
| 297 | handle = s->handle; |
| 298 | } |
| 299 | |
| 300 | if (handle != 0) |
| 301 | { |
| 302 | xSndSetPitch(handle, pitch); |
| 303 | } |
| 304 | } |
| 305 | |
| 306 | void show_wand() |
| 307 | { |
no test coverage detected