Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - OrientatedCookie

Pages: 1 [2]
Audio / Re: sf::sound won't play .ogg file
« on: April 17, 2015, 01:32:57 pm »
I moved the sound.play(); outside of the loop, but still not hearing anything  :-\ I also tried with sf::music, and with different files.

Audio / Re: sf::sound won't play .ogg file
« on: April 17, 2015, 12:15:34 pm »
Thank you for the responses, my volume isn't the problem I don't think. How would I play the sound just once?

Audio / sf::sound won't play .ogg file
« on: April 17, 2015, 11:47:15 am »
I am trying to play an .ogg file in SFML, I have all the DLLs and the libraries etc, but for some reason nothing plays when I start the code.  I have read the tutorials and have looked around a bit to see if I could fix it myself, but had no avail. I think it might have something to do with the buffer in the wrong place, but not sure. Furthermore the window freezes when opened, don't know what is wrong. Any ideas?

#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/Audio.hpp>

int main()
        sf::Window window(sf::VideoMode(800, 600), "My window");

        sf::SoundBuffer buffer;
        sf::Sound sound;

        while (window.isOpen())


Pages: 1 [2]