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

Method onStart

examples/sound_effects/SoundEffects.cpp:575–581  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573 }
574
575 void onStart() override
576 {
577 // Synchronize listener audio position with graphical position
578 sf::Listener::setPosition({m_listener.getPosition().x, m_listener.getPosition().y, 0.f});
579
580 play();
581 }
582
583 void onStop() override
584 {

Callers

nothing calls this directly

Calls 2

setPositionFunction · 0.85
getPositionMethod · 0.45

Tested by

no test coverage detected