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

Method onStart

examples/sound_effects/SoundEffects.cpp:335–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333 }
334
335 void onStart() override
336 {
337 // Synchronize listener audio position with graphical position
338 sf::Listener::setPosition({m_listener.getPosition().x, m_listener.getPosition().y, 0.f});
339
340 m_music.play();
341 }
342
343 void onStop() override
344 {

Callers

nothing calls this directly

Calls 3

setPositionFunction · 0.85
getPositionMethod · 0.45
playMethod · 0.45

Tested by

no test coverage detected