| 216 | } |
| 217 | |
| 218 | bool CSounds::IsPlaying(int SetId) |
| 219 | { |
| 220 | if(m_WaitForSoundJob || SetId < 0 || SetId >= g_pData->m_NumSounds) |
| 221 | return false; |
| 222 | |
| 223 | const CDataSoundset *pSet = &g_pData->m_aSounds[SetId]; |
| 224 | for(int i = 0; i < pSet->m_NumSounds; i++) |
| 225 | if(pSet->m_aSounds[i].m_Id != -1 && Sound()->IsPlaying(pSet->m_aSounds[i].m_Id)) |
| 226 | return true; |
| 227 | return false; |
| 228 | } |
| 229 | |
| 230 | ISound::CVoiceHandle CSounds::PlaySample(int Channel, int SampleId, int Flags, float Volume) |
| 231 | { |
no test coverage detected