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

Method getVelocity

src/SFML/Audio/SoundSource.cpp:261–270  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

259
260////////////////////////////////////////////////////////////
261Vector3f SoundSource::getVelocity() const
262{
263 if (const auto* sound = static_cast<const ma_sound*>(getSound()))
264 {
265 const auto velocity = ma_sound_get_velocity(sound);
266 return {velocity.x, velocity.y, velocity.z};
267 }
268
269 return {};
270}
271
272
273////////////////////////////////////////////////////////////

Callers 1

SoundSource.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected