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

Method getMaxGain

src/SFML/Audio/SoundSource.cpp:334–340  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

332
333////////////////////////////////////////////////////////////
334float SoundSource::getMaxGain() const
335{
336 if (const auto* sound = static_cast<const ma_sound*>(getSound()))
337 return ma_sound_get_max_gain(sound);
338
339 return 0.f;
340}
341
342
343////////////////////////////////////////////////////////////

Callers 3

SoundSource.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected