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

Method getPitch

src/SFML/Audio/SoundSource.cpp:177–183  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

175
176////////////////////////////////////////////////////////////
177float SoundSource::getPitch() const
178{
179 if (const auto* sound = static_cast<const ma_sound*>(getSound()))
180 return ma_sound_get_pitch(sound);
181
182 return 0.f;
183}
184
185
186////////////////////////////////////////////////////////////

Callers 3

SoundSource.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected