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

Method getDopplerFactor

src/SFML/Audio/SoundSource.cpp:274–280  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

272
273////////////////////////////////////////////////////////////
274float SoundSource::getDopplerFactor() const
275{
276 if (const auto* sound = static_cast<const ma_sound*>(getSound()))
277 return ma_sound_get_doppler_factor(sound);
278
279 return 0.f;
280}
281
282
283////////////////////////////////////////////////////////////

Callers 3

SoundSource.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected