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

Method getDirection

src/SFML/Audio/SoundSource.cpp:230–239  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

228
229////////////////////////////////////////////////////////////
230Vector3f SoundSource::getDirection() const
231{
232 if (const auto* sound = static_cast<const ma_sound*>(getSound()))
233 {
234 const auto direction = ma_sound_get_direction(sound);
235 return {direction.x, direction.y, direction.z};
236 }
237
238 return {};
239}
240
241
242////////////////////////////////////////////////////////////

Callers 1

SoundSource.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected