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

Method onStart

examples/sound_effects/SoundEffects.cpp:221–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

219 }
220
221 void onStart() override
222 {
223 // We set the listener position back to the default
224 // so that the music is right on top of the listener
225 sf::Listener::setPosition({0.f, 0.f, 0.f});
226
227 m_music.play();
228 }
229
230 void onStop() override
231 {

Callers

nothing calls this directly

Calls 2

setPositionFunction · 0.85
playMethod · 0.45

Tested by

no test coverage detected