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

Method onStart

examples/sound_effects/SoundEffects.cpp:655–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653 }
654
655 void onStart() override
656 {
657 // Synchronize listener audio position with graphical position
658 sf::Listener::setPosition({m_listener.getPosition().x, m_listener.getPosition().y, 0.f});
659
660 m_music.play();
661 }
662
663 void onStop() override
664 {

Callers

nothing calls this directly

Calls 3

setPositionFunction · 0.85
getPositionMethod · 0.45
playMethod · 0.45

Tested by

no test coverage detected