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

Author Topic: External dependencies related request  (Read 3632 times)

0 Members and 1 Guest are viewing this topic.

7er

  • Newbie
  • *
  • Posts: 1
    • View Profile
External dependencies related request
« on: March 28, 2010, 09:04:25 am »
Currently, SFML_Audio depends on OpenAL-Soft and libsndfile which are LGPL and therefore don't permit static linking with closed-source applications. For some developers neither releasing source codes nor dynamic linking is acceptable for various reasons. Those developers are not able to use SFML_Audio and have to rely on other cross-platform audio solutions instead. One of such solutions is PortAudio. Still it would be much more preferable if low-level PortAudio library was wrapped by a more friendly library like SFML_Audio. Certainly, PortAudio does not natively support advanced features like 3D spatialization but those features are not used very often. Anyway, those missing functions could be possible to implement, or otherwise, there could be two versions of SFML_Audio: "classic" version using OpenAL that provides advanced functionality and "lite" version using PortAudio that is not bound by LGPL limitations.
As for libsndfile, I don't really understand why is it needed at all. Hardly anybody needs any formats besides OGG/Vorbis and WAV/PCM, where the former is handled by stb_vorbis and the latter is simple enough to be decoded without any external libraries. Additionally, BSD-licensed libFLAC might be useful for FLAC support.
Thanks.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
External dependencies related request
« Reply #1 on: March 28, 2010, 02:16:46 pm »
Well, I'm not going to rewrite the whole audio module with a brand new low-level API that I don't know at all, rewrite support for file formats (I'm not using stb_vorbis, by the way), just because for some reason you don't want those 2 DLLs on Windows -- may I ask why?.
Laurent Gomila - SFML developer