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

Method findsound

source/src/audiomanager.cpp:204–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
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
213int audiomanager::addsound(const char *name, int vol, int maxuses, bool loop, vector<soundconfig> &sounds, bool load, int audibleradius)
214{

Callers 1

voicecomFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected