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

Method setMaxDistance

src/SFML/Audio/SoundSource.cpp:138–142  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

136
137////////////////////////////////////////////////////////////
138void SoundSource::setMaxDistance(float distance)
139{
140 if (auto* sound = static_cast<ma_sound*>(getSound()))
141 ma_sound_set_max_distance(sound, distance);
142}
143
144
145////////////////////////////////////////////////////////////

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected