SFML community forums
Help => General => Topic started by: l0calh05t on July 27, 2009, 09:35:00 pm
-
I decided to try to build the sfml2 branch on my linux vm, but I'm having trouble with the build, because the identifiers
SF_FORMAT_OGG
SF_FORMAT_VORBIS
SF_FORMAT_WVE
SF_FORMAT_MPC2K
SF_FORMAT_RF64
are not declared (in SoundFile.cpp)
libsndfile1-dev is installed, but none of these identifiers appear in sndfile.h
-
You must have at least version 1.0.18.
-
And I have 1.0.17-4ubuntu1... are there any ubuntu 9.04 repositories with a more current version?
-
found one: https://launchpad.net/~mscore-ubuntu/+archive/ppa
-
Laurent, could you add a note in the download section on this? ;)
-
It will be added as soon as I create a section for SFML 2 on the website.
-
A section for SFML2? Sounds like progress. ;) What will be published?
-
The same stuff as for other versions: documentation and tutorials.
-
Is 1.0.18. still a working version? I get the error message "File contains data in an unimplemented format" when loading .ogg.
Ubuntu 9.04 x64
-
Is your OGG valid? Did you try the OGG file provided with the samples in the SFML SDK?
-
On my Debian GNU/Linux box the 1.0.18 version of libsndfile works perfect. So it's probably an installation/packaging issue.
-
I've tested it:
- wav works;
- .oggs from the samples don't work, neither do any I've tested.
-
You can try 1.0.20 if it's available for you.
Also make sure that you have ogg/vorbis libraries installed; I'm not sure but libsndfile may use them dynamically, and thus fail to load ogg files it they're not installed.
-
Sound works with 1.0.20.
However, I get those:
An internal OpenAL call failed in SoundBuffer.cpp (73) : AL_INVALID_OPERATION, the specified operation is not allowed in the current state
An internal OpenAL call failed in SoundBuffer.cpp (73) : AL_INVALID_OPERATION, the specified operation is not allowed in the current state
AL lib: alSource.c:2291: alcDestroyContext(): 28 Source(s) NOT deleted
AL lib: alBuffer.c:1097: exit() 4 Buffer(s) NOT deleted
-
Do you destroy a SoundBuffer before the Sound(s) that uses it?