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

Method getVolume

src/SFML/Audio/SoundSource.cpp:197–203  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

195
196////////////////////////////////////////////////////////////
197float SoundSource::getVolume() const
198{
199 if (const auto* sound = static_cast<const ma_sound*>(getSound()))
200 return ma_sound_get_volume(sound) * 100.f;
201
202 return 0.f;
203}
204
205
206////////////////////////////////////////////////////////////

Callers 3

SoundSource.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected