MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / IsOneLoopingSound

Method IsOneLoopingSound

engine/Poseidon/Audio/DynSound.cpp:52–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52bool DynSound::IsOneLoopingSound() const
53{
54 if (_sounds.Size() != 1)
55 {
56 return false;
57 }
58 if (_sounds[0]._max_delay > 0)
59 {
60 return false;
61 }
62 if (_emptySound._max_delay > 0)
63 {
64 return false;
65 }
66 return true;
67}
68
69const SoundEntry& DynSound::SelectSound(float probab) const
70{

Callers 1

SimulateMethod · 0.80

Calls 1

SizeMethod · 0.45

Tested by

no test coverage detected