Hello everyone,
I'm really new to SFML and game programming, fairly new with Ubuntu, and just decent with C programming (C++ work in progress).
I installed SFML on my Ubuntu 10.10 and I successfully manage to run some tests and create my first basic version of Pong. Now...I tried to add sounds to my game simply adding after the initialization
if(!introMusic.OpenFromFile("music.ogg")){
return;
}
introMusic.Play();
When I compile I have no errors, but when I run the program the music doesn't start and I get the following message in the terminal
AL lib: oss.c:169: Could not open /dev/dsp: No such file or directory
I googled it and looked around for a solution but I couldn't find one...
The thing is that there is no /dev/dsp in my PC, so my guess is that the program is trying to open the wrong device. Maybe I didn't installed properly libsndfile and/or openal, so I tried reinstall them via Synaptic Package Manager.
Ah..all the other sounds work on my computer
Thank you in advance for any help you can give me!
Happy programming to everyone!