| 1014 | } |
| 1015 | |
| 1016 | bool CSound::IsPlaying(int SampleId) |
| 1017 | { |
| 1018 | dbg_assert(SampleId >= 0 && SampleId < NUM_SAMPLES, "SampleId invalid"); |
| 1019 | const CLockScope LockScope(m_SoundLock); |
| 1020 | const CSample *pSample = &m_aSamples[SampleId]; |
| 1021 | dbg_assert(m_aSamples[SampleId].IsLoaded(), "Sample not loaded"); |
| 1022 | return std::any_of(std::begin(m_aVoices), std::end(m_aVoices), [pSample](const auto &Voice) { return Voice.m_pSample == pSample; }); |
| 1023 | } |
| 1024 | |
| 1025 | void CSound::PauseAudioDevice() |
| 1026 | { |
no test coverage detected