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

Author Topic: Using sfMusic_createFromStream will cause sfMusic_destroy to crash  (Read 8331 times)

0 Members and 1 Guest are viewing this topic.

tinyBigGAMES LLC

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • tinyBigGAMES LLC
    • Email
Hi,

I'm using CSFML audio and I got it working with Physfs. It loads and plays the music stream just from from within a zip archive. Everything seems to work fine, but when it will fault when I call sfMusic_destroy.

So I then tested with sfMusic_createFromFile, there is no crash. So what could be going on with sfMusic_createFromStream that would cause the crash?

Windows 11 Pro, 64 bit executable, Delphi 11
Jarrod Davis
Owner/Lead Developer
tinyBigGAMES LLC

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Using sfMusic_createFromStream will cause sfMusic_destroy to crash
« Reply #1 on: October 13, 2021, 08:25:22 am »
What version of CSFML are you on?
There have been some fixes not too long ago around sfMusic and streams: https://github.com/SFML/CSFML/pull/163
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

tinyBigGAMES LLC

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • tinyBigGAMES LLC
    • Email
Re: Using sfMusic_createFromStream will cause sfMusic_destroy to crash
« Reply #2 on: October 13, 2021, 08:39:53 am »
I'm using CSFML 2.5.1 binaries
Jarrod Davis
Owner/Lead Developer
tinyBigGAMES LLC

tinyBigGAMES LLC

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • tinyBigGAMES LLC
    • Email
Re: Using sfMusic_createFromStream will cause sfMusic_destroy to crash
« Reply #3 on: October 13, 2021, 08:48:42 am »
Yea, I think that fix is there. I don't even know how to build csfml
Jarrod Davis
Owner/Lead Developer
tinyBigGAMES LLC

tinyBigGAMES LLC

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • tinyBigGAMES LLC
    • Email
Re: Using sfMusic_createFromStream will cause sfMusic_destroy to crash
« Reply #4 on: October 13, 2021, 10:33:32 am »
I've been trying to build csfml for a few hours now. It's so complicated, sheez. I'm stuck on the SFMLConfig.cmake issue. The SFMLConfig.cmake.in file does not work, something about version unknown. How do I compile csfml for windows x64 bits?
Jarrod Davis
Owner/Lead Developer
tinyBigGAMES LLC

tinyBigGAMES LLC

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • tinyBigGAMES LLC
    • Email
Re: Using sfMusic_createFromStream will cause sfMusic_destroy to crash
« Reply #5 on: October 13, 2021, 03:57:59 pm »
Phew, after much pain and suffering, LOL, I finally managed to get build system setup to build sfml/csfml with visual studio 2019. Upgrading to the latests dev build does fix the crash issues.

Many thanks eXpl0it3r.
Jarrod Davis
Owner/Lead Developer
tinyBigGAMES LLC