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

Method onStart

examples/sound_effects/SoundEffects.cpp:399–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

397 }
398
399 void onStart() override
400 {
401 // We set the listener position back to the default
402 // so that the tone is right on top of the listener
403 sf::Listener::setPosition({0.f, 0.f, 0.f});
404
405 play();
406 }
407
408 void onStop() override
409 {

Callers

nothing calls this directly

Calls 1

setPositionFunction · 0.85

Tested by

no test coverage detected