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 - shobbi123

Pages: [1]
1
Audio / Re: No sound after update to 2.1
« on: September 09, 2014, 10:24:14 am »
I have to ask the stupid question: if you use some other application to play the file, does it play OK on the same machine/OS?

Acutally that was a good question, as the file didn't play in Amarok too. The reason was simply because I had the volume on the speakers turned down :D After turning up the volumne at the speakers I could hear the sound. Sorry for having stolen your time. Now I still have to figure out why my friends can not hear sound. I guess they don't have the same problem.

Thanks to all of you for your help.

2
Audio / Re: No sound after update to 2.1
« on: September 07, 2014, 07:08:19 pm »
Thanks for the replies. I tried the full path to the file and I think I can count out compiler problems. I'm working under Linux currently, so everything (build setup, libs) comes from the Ubuntu repositories and should be compatible. I'll try debugging and if that does not help I'll revert to the old setup with sfml 1.6.

3
Audio / No sound after update to 2.1
« on: September 07, 2014, 01:05:32 pm »
Hi,

I updated a project of mine to SFML 2.1 from 1.6 and since that the sound is no longer playing. My project is a cross platform application for Win, Mac and Linux and with 2.1 the sound stopped working at least on Linux and Win (haven't tried Mac yet). I tried it on different PCs with the same result..
I wanted to get the example working under linux, just the sound part, but the sound is not playing either and I don't get any error message. That's the example code I'm trying to run:
sf::RenderWindow window(sf::VideoMode(800, 600), "SFML window");
sf::Music music;
if (!music.openFromFile("/home/user/audiofile.ogg"))
    return EXIT_FAILURE;
music.play();
while (window.isOpen())
{
    sf::Event event;
    while (window.pollEvent(event))
    {
        if (event.type == sf::Event::Closed)
            window.close();
    }
    window.clear();
    window.display();
}
return EXIT_SUCCESS;
Does anybody have an Idea what is wrong?

Pages: [1]