MCPcopy Create free account
hub / github.com/Panzerschrek/Chasm-Reverse / GetFreeSource

Method GetFreeSource

PanzerChasm/sound/sound_engine.cpp:356–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356SoundEngine::Source* SoundEngine::GetFreeSource()
357{
358 for( Source& s : sources_ )
359 {
360 if( s.is_free )
361 return &s;
362 }
363
364 return nullptr;
365}
366
367void SoundEngine::UpdateAmbientSoundState()
368{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected