MCPcopy Create free account
hub / github.com/ddnet/ddnet / IsPlaying

Method IsPlaying

src/game/client/components/sounds.cpp:218–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218bool 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
230ISound::CVoiceHandle CSounds::PlaySample(int Channel, int SampleId, int Flags, float Volume)
231{

Callers 3

OnInitMethod · 0.45
OnConnectedMethod · 0.45
UpdateMusicStateMethod · 0.45

Calls 1

SoundFunction · 0.50

Tested by

no test coverage detected