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.


Topics - TheRavenBlue

Pages: [1]
1
Audio / Program loads .WAV but does not play it back an/or I cant hear it!
« on: December 16, 2015, 10:08:50 pm »
I'm creating a small game and I wanted my program to play music in the main meny this is how it looks like now:
void MainMenyMusic::PlayMusic()
{
        sf::Music music;
        music.setVolume(50);
        if (music.openFromFile("test.wav") && !music.Playing)
        {
                music.play();
        }

        if (!music.openFromFile("test.wav"))
        {
                exit(0);
        }
}

I know that it is not the best but I wanted to test it out I have also done exactly like the tutorial said about playing music but it did not work either.
What is wrong with this?
I'm also using DirectX to draw it all and using SFML to do some back end stuff as networking and sound!

Thanks!

2
General / Help setting up SFML with Code::Blocks on Ubuntu!
« on: November 26, 2015, 12:31:02 pm »
Hello, I'm having some problem setting up SFML on Code::Blocks on Ubuntu I tried to follow the Windows tutorial here but It did not work for me, can someone write or link me to a Linux & Code::Blocks specific tutorial!

Thank you!

Pages: [1]
anything