MCPcopy Create free account
hub / github.com/SFML/SFML / getMinDistance

Method getMinDistance

src/SFML/Audio/SoundSource.cpp:304–310  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

302
303////////////////////////////////////////////////////////////
304float SoundSource::getMinDistance() const
305{
306 if (const auto* sound = static_cast<const ma_sound*>(getSound()))
307 return ma_sound_get_min_distance(sound);
308
309 return 0.f;
310}
311
312
313////////////////////////////////////////////////////////////

Callers 3

SoundSource.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected