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

Method onStart

examples/sound_effects/SoundEffects.cpp:148–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 }
147
148 void onStart() override
149 {
150 // Synchronize listener audio position with graphical position
151 sf::Listener::setPosition({m_listener.getPosition().x, m_listener.getPosition().y, 0.f});
152
153 m_music.play();
154 }
155
156 void onStop() override
157 {

Callers

nothing calls this directly

Calls 3

setPositionFunction · 0.85
getPositionMethod · 0.45
playMethod · 0.45

Tested by

no test coverage detected