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

Pages: [1]
1
Audio / Could not open /dev/dsp, problem reproducing audio
« on: January 10, 2012, 05:36:09 pm »
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

Code: [Select]
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

Quote
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!

Pages: [1]