MCPcopy Create free account
hub / github.com/diasurgical/devilution / IsPlaying

Method IsPlaying

SourceX/soundsample.cpp:14–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12};
13
14bool SoundSample::IsPlaying()
15{
16 for (int i = 1; i < Mix_AllocateChannels(-1); i++) {
17 if (Mix_GetChunk(i) == chunk && Mix_Playing(i)) {
18 return true;
19 }
20 }
21
22 return false;
23};
24
25void SoundSample::Play(int lVolume, int lPan)
26{

Callers 1

snd_playingFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected