SFML Audio
C++
code posted
created at 31 Mar 21:03
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#include <SFML/Window.hpp> #include <SFML/Graphics.hpp> #include <SFML/Audio.hpp> int main(int argc, char* argv[]) { sf::RenderWindow window(sf::VideoMode(640, 480), "SFML Music test"); sf::Music music; music.openFromFile("menu.ogg"); music.setLoop(true); music.play(); while (window.isOpen()) { window.clear(); } } |
350 Bytes in 2 ms with coderay