| 178 | } |
| 179 | |
| 180 | void StopVoice(void) { |
| 181 | if (CurrentVoiceHandle.inuse) { |
| 182 | if (CurrentVoiceHandle.flags & VF_PLAYTABLE) { |
| 183 | if (CurrentVoiceHandle.handle != -1) |
| 184 | Sound_system.StopSoundImmediate(CurrentVoiceHandle.handle); |
| 185 | } else { |
| 186 | if (CurrentVoiceHandle.chandle != -1) |
| 187 | StreamStop(CurrentVoiceHandle.chandle); |
| 188 | } |
| 189 | } |
| 190 | CurrentVoiceHandle.handle = -1; |
| 191 | CurrentVoiceHandle.flags = 0; |
| 192 | CurrentVoiceHandle.chandle = -1; |
| 193 | CurrentVoiceHandle.inuse = false; |
| 194 | } |
| 195 | |
| 196 | void UpdateVoices(void) { |
| 197 | char filename[_MAX_PATH]; |
no test coverage detected