| 337 | } |
| 338 | |
| 339 | void PauseAllSounds(SoundPauseMode mode) |
| 340 | { |
| 341 | if (mode == SoundPauseMode::Global) |
| 342 | { |
| 343 | BASS_Pause(); |
| 344 | return; |
| 345 | } |
| 346 | |
| 347 | for (const auto& slot : SoundSlot) |
| 348 | { |
| 349 | if ((slot.Channel != NULL) && (BASS_ChannelIsActive(slot.Channel) == BASS_ACTIVE_PLAYING)) |
| 350 | BASS_ChannelPause(slot.Channel); |
| 351 | } |
| 352 | |
| 353 | for (int i = 0; i < (int)SoundTrackType::Count; i++) |
| 354 | { |
| 355 | if (mode == SoundPauseMode::Inventory && (SoundTrackType)i != SoundTrackType::Voice) |
| 356 | continue; |
| 357 | |
| 358 | const auto& slot = SoundtrackSlot[i]; |
| 359 | if ((slot.Channel != NULL) && (BASS_ChannelIsActive(slot.Channel) == BASS_ACTIVE_PLAYING)) |
| 360 | BASS_ChannelPause(slot.Channel); |
| 361 | } |
| 362 | } |
| 363 | |
| 364 | void ResumeAllSounds(SoundPauseMode mode) |
| 365 | { |
no outgoing calls
no test coverage detected