Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Build problem (libsndfile related)  (Read 7706 times)

0 Members and 1 Guest are viewing this topic.

l0calh05t

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Build problem (libsndfile related)
« 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

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Build problem (libsndfile related)
« Reply #1 on: July 27, 2009, 09:46:48 pm »
You must have at least version 1.0.18.
Laurent Gomila - SFML developer

l0calh05t

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Build problem (libsndfile related)
« Reply #2 on: July 27, 2009, 09:50:33 pm »
And I have 1.0.17-4ubuntu1... are there any ubuntu 9.04 repositories with a more current version?

l0calh05t

  • Full Member
  • ***
  • Posts: 200
    • View Profile
Build problem (libsndfile related)
« Reply #3 on: July 27, 2009, 10:41:11 pm »

K-Bal

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • pencilcase.bandcamp.com
    • Email
Build problem (libsndfile related)
« Reply #4 on: September 10, 2009, 10:55:05 am »
Laurent, could you add a note in the download section on this? ;)
Listen to my band: pencilcase.bandcamp.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Build problem (libsndfile related)
« Reply #5 on: September 10, 2009, 11:01:12 am »
It will be added as soon as I create a section for SFML 2 on the website.
Laurent Gomila - SFML developer

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Build problem (libsndfile related)
« Reply #6 on: September 10, 2009, 11:58:10 am »
A section for SFML2? Sounds like progress. ;) What will be published?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Build problem (libsndfile related)
« Reply #7 on: September 10, 2009, 12:00:44 pm »
The same stuff as for other versions: documentation and tutorials.
Laurent Gomila - SFML developer

K-Bal

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • pencilcase.bandcamp.com
    • Email
Build problem (libsndfile related)
« Reply #8 on: September 25, 2009, 06:20:53 pm »
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
Listen to my band: pencilcase.bandcamp.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Build problem (libsndfile related)
« Reply #9 on: September 25, 2009, 08:03:24 pm »
Is your OGG valid? Did you try the OGG file provided with the samples in the SFML SDK?
Laurent Gomila - SFML developer

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
Build problem (libsndfile related)
« Reply #10 on: September 25, 2009, 08:32:00 pm »
On my Debian GNU/Linux box the 1.0.18 version of libsndfile works perfect. So it's probably an installation/packaging issue.

K-Bal

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • pencilcase.bandcamp.com
    • Email
Build problem (libsndfile related)
« Reply #11 on: September 26, 2009, 10:46:45 pm »
I've tested it:

- wav works;
- .oggs from the samples don't work, neither do any I've tested.
Listen to my band: pencilcase.bandcamp.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Build problem (libsndfile related)
« Reply #12 on: September 27, 2009, 11:21:25 am »
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.
Laurent Gomila - SFML developer

K-Bal

  • Full Member
  • ***
  • Posts: 104
    • View Profile
    • pencilcase.bandcamp.com
    • Email
Build problem (libsndfile related)
« Reply #13 on: September 28, 2009, 06:13:06 pm »
Sound works with 1.0.20.

However, I get those:

Quote

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
Listen to my band: pencilcase.bandcamp.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Build problem (libsndfile related)
« Reply #14 on: September 28, 2009, 06:28:07 pm »
Do you destroy a SoundBuffer before the Sound(s) that uses it?
Laurent Gomila - SFML developer