| 199 | } |
| 200 | |
| 201 | void stop_sound(S32 which, U32 handle) |
| 202 | { |
| 203 | sound_config* s = &sounds[which]; |
| 204 | |
| 205 | if (s->id == 0) |
| 206 | { |
| 207 | if (s->streamed == 0) |
| 208 | { |
| 209 | for (S32 i = s->first; i <= s->last; ++i) |
| 210 | { |
| 211 | zEntPlayer_SNDStop((_tagePlayerSnd)i); |
| 212 | } |
| 213 | } |
| 214 | return; |
| 215 | } |
| 216 | |
| 217 | if (handle == 0) |
| 218 | { |
| 219 | handle = s->handle; |
| 220 | } |
| 221 | |
| 222 | if (handle != 0) |
| 223 | { |
| 224 | xSndStop(handle); |
| 225 | } |
| 226 | |
| 227 | s->handle = 0; |
| 228 | } |
| 229 | |
| 230 | U32 play_sound(S32 which, F32 volFactor) |
| 231 | { |
no test coverage detected