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

Function main

examples/sound/Sound.cpp:83–100  ·  view source on GitHub ↗

/////////////////////////////////////////////////////// Entry point of application \return Application exit code ///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

81///
82////////////////////////////////////////////////////////////
83int main()
84{
85 // Play a sound
86 playSound();
87
88 // Play music from an ogg file
89 playMusic("doodle_pop.ogg");
90
91 // Play music from a flac file
92 playMusic("ding.flac");
93
94 // Play music from a mp3 file
95 playMusic("ding.mp3");
96
97 // Wait until the user presses 'enter' key
98 std::cout << "Press enter to exit..." << std::endl;
99 std::cin.ignore(10'000, '\n');
100}

Callers

nothing calls this directly

Calls 2

playSoundFunction · 0.85
playMusicFunction · 0.85

Tested by

no test coverage detected