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

Method getPosition

src/SFML/Audio/SoundSource.cpp:217–226  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

215
216////////////////////////////////////////////////////////////
217Vector3f SoundSource::getPosition() const
218{
219 if (const auto* sound = static_cast<const ma_sound*>(getSound()))
220 {
221 const auto position = ma_sound_get_position(sound);
222 return {position.x, position.y, position.z};
223 }
224
225 return {};
226}
227
228
229////////////////////////////////////////////////////////////

Callers 1

SoundSource.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected