MCPcopy Create free account
hub / github.com/assaultcube/AC / update

Method update

source/src/soundlocation.cpp:166–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void location::update()
167{
168 if(stale) return;
169
170 switch(src->state())
171 {
172 case AL_PLAYING:
173 updatepos();
174 break;
175 case AL_STOPPED:
176 case AL_PAUSED:
177 case AL_INITIAL:
178 stale = true;
179 DEBUG("location is stale");
180 break;
181 }
182}
183
184void location::play(bool loop)
185{

Callers 1

updatelocationsMethod · 0.45

Calls 1

stateMethod · 0.80

Tested by

no test coverage detected