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

Function loopv

source/src/audiomanager.cpp:206–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204int audiomanager::findsound(const char *name, int vol, vector<soundconfig> &sounds)
205{
206 loopv(sounds)
207 {
208 if(!strcmp(sounds[i].buf->name, name) && (!vol || sounds[i].vol==vol)) return i;
209 }
210 return -1;
211}
212

Callers 5

unmuteallsoundsMethod · 0.70
mapsoundslotusageFunction · 0.70
deletemapsoundslotFunction · 0.70
mapsoundslotbynameFunction · 0.70
sortmapsoundslotsFunction · 0.70

Calls 8

getlistindexFunction · 0.85
delstringFunction · 0.85
cvecprintfFunction · 0.85
distMethod · 0.80
loopvjFunction · 0.70
dropMethod · 0.45
printfMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected