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

Author Topic: [SOLVED] Qt Resources - Loading a sound from a ressource  (Read 16486 times)

0 Members and 4 Guests are viewing this topic.

MaximumTrainer

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • MaximumTrainer
    • Email
Might be this bug: https://github.com/SFML/SFML/issues/30

A fix is pending, you'll find the corresponding branch at the end of the discussion.

Thanks for the link Laurent, I read the discussion and will follow the progress.

In the meantime, I was able to get rid of the error by replacing the openal32.dll provided in 2.1 by the one found at :
http://kcat.strangesoft.net/openal.html#download
I'll have to make sure I can use this dll in production but I think it is legit.

SFML rocks! A+
Free Indoor Cycling Software - https://maximumtrainer.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Yes, you can use it in production. SFML uses an older version of OpenAL-Soft, but the API never changes so you can replace it with this latest version. No problem.
Laurent Gomila - SFML developer

MaximumTrainer

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • MaximumTrainer
    • Email
Great to know!
Just curious, if the new OpenAL-Soft seems to fix this problem, why not include it in SFML? may be over my head here..  good luck ;)
Free Indoor Cycling Software - https://maximumtrainer.com

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
It doesn't fix it, just seems to play more nicely with the ugly internals of sfml-audio in certain situations. It's SFML that needs to be fixed, not OpenAL ;)
Laurent Gomila - SFML developer

MaximumTrainer

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • MaximumTrainer
    • Email
Got it! The proposition to had control of the AudioDevice to the user seems good. I'll wait for 2.2, during that time I'm using the other dll as a temporary solution.  Great project again, i'm gonna check to help with my limited c++ experience ;)


Free Indoor Cycling Software - https://maximumtrainer.com