MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / AddAudio

Method AddAudio

neo/framework/DeclPDA.cpp:207–216  ·  view source on GitHub ↗

================= idDeclPDA::AddAudio ================= */

Source from the content-addressed store, hash-verified

205=================
206*/
207void idDeclPDA::AddAudio( const char *name, bool unique ) const {
208 if ( unique && ( audios.Find( name ) != NULL ) ) {
209 return;
210 }
211 if ( declManager->FindType( DECL_AUDIO, name, false ) == NULL ) {
212 common->Printf( "Audio log %s not found\n", name );
213 return;
214 }
215 audios.Append( name );
216}
217
218/*
219=================

Callers

nothing calls this directly

Calls 4

FindMethod · 0.45
FindTypeMethod · 0.45
PrintfMethod · 0.45
AppendMethod · 0.45

Tested by

no test coverage detected