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

Method setMinDistance

src/SFML/Audio/SoundSource.cpp:130–134  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

128
129////////////////////////////////////////////////////////////
130void SoundSource::setMinDistance(float distance)
131{
132 if (auto* sound = static_cast<ma_sound*>(getSound()))
133 ma_sound_set_min_distance(sound, distance);
134}
135
136
137////////////////////////////////////////////////////////////

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected