MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / iSndIsPlaying

Function iSndIsPlaying

src/SB/Core/gc/iSnd.cpp:605–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

603}
604
605bool iSndIsPlaying(U32 assetID)
606{
607 if (assetID == 0)
608 {
609 return false;
610 }
611
612 for (S32 i = 0; i < 6; i++)
613 {
614 if (gSnd.voice[i].assetID == assetID)
615 {
616 if (streams[i].vinf.flags & 0xC000 && (streams[i].vinf.flags & 0x82) == 0)
617 {
618 return true;
619 }
620 return false;
621 }
622 }
623
624 for (S32 i = 0; i < 0x3a; i++)
625 {
626 if (gSnd.voice[i + 6].assetID == assetID)
627 {
628 if (voices[i].flags & 0x4 && (voices[i].flags & 0x8) == 0)
629 {
630 return true;
631 }
632 return false;
633 }
634 }
635 return true;

Callers 2

xSndIsPlayingFunction · 0.50
xSndIsPlayingFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected