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

Author Topic: crash with audio on vista/visual studio 2008  (Read 20093 times)

0 Members and 1 Guest are viewing this topic.

Wolfram

  • Newbie
  • *
  • Posts: 13
    • View Profile
crash with audio on vista/visual studio 2008
« Reply #15 on: September 21, 2009, 03:00:05 pm »
Code: [Select]
Did you link the SFML and CRT (c-runtime) libraries correctly?
I think that I linked all correctly.
Other packages of SFML works perfectly, only the dynamic audio library don't work :(

Code: [Select]
You should get used to the debugger...
I will learn to use the debugger ;) :)

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
crash with audio on vista/visual studio 2008
« Reply #16 on: September 21, 2009, 03:30:31 pm »
Hm... Another idea: Don't download the OpenAL32 runtime, especially not from CreativeLabs. Use the libraries delivered by SFML.
(edited afterwards ;))

I can remember a case where my app froze, too, after a while. It turned out to be a bad DLL version.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Wolfram

  • Newbie
  • *
  • Posts: 13
    • View Profile
crash with audio on vista/visual studio 2008
« Reply #17 on: September 21, 2009, 03:36:29 pm »
Code: [Select]
Hm... Another idea: Try to download a current OpenAL32 runtime
Hmm, but the static SFML-audio library uses also OpenAl32 and haven't problems, but I will try to install the newest OpenAl32 runtime.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
crash with audio on vista/visual studio 2008
« Reply #18 on: September 21, 2009, 03:38:49 pm »
You must use the DLLs provided in the SFML SDK, not another release (especially from Creative Labs website -- this implementation is buggy, deprecated and not used anymore by SFML).
Laurent Gomila - SFML developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
crash with audio on vista/visual studio 2008
« Reply #19 on: September 21, 2009, 03:51:32 pm »
Oh, thanks for the correction. I received a more reliable impression from the website. :roll:

Anyway, I edited my post not to confuse more users.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
crash with audio on vista/visual studio 2008
« Reply #20 on: September 21, 2009, 03:56:17 pm »
Quote
I received more reliable impression from the website

I looked at the website, and they talk about OpenAL Soft (which is the one used by SFML). But I don't know if they support/distribute it, or if they just mention it.
Laurent Gomila - SFML developer

Wolfram

  • Newbie
  • *
  • Posts: 13
    • View Profile
crash with audio on vista/visual studio 2008
« Reply #21 on: September 21, 2009, 03:59:52 pm »
Code: [Select]
You must use the DLLs provided in the SFML SDK, not another release (espacially from Creative Labs website -- this implementation is buggy, deprecated and not used anymore by SFML).
I use the DLLs provided in the SFML SDK, but my applications don't work if I use the dynamic SFML-audio library.
With a static build of SFML-audio library I can use the audio-package without problems.
I think it's a bug, because I've got no problems with sounds in older SFML versions.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
crash with audio on vista/visual studio 2008
« Reply #22 on: September 21, 2009, 05:30:42 pm »
I think this has to do with the global audio manager, I'll see if I can fix it.
Laurent Gomila - SFML developer

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
crash with audio on vista/visual studio 2008
« Reply #23 on: October 29, 2009, 10:05:17 pm »
Just did a build of SFML2 on a Windows 7 installation and the same bug happens for me. Is there any update on this one?

(program starts, but windows doesn't open)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
crash with audio on vista/visual studio 2008
« Reply #24 on: October 30, 2009, 09:02:36 am »
Quote
Just did a build of SFML2 on a Windows 7 installation and the same bug happens for me

Can you tell me again what the bug is exactly?
Laurent Gomila - SFML developer

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
crash with audio on vista/visual studio 2008
« Reply #25 on: October 30, 2009, 11:50:52 am »
Hehe sure: As soon as you link to sfml-audio dynamically (debug or release doesn't matter), then the window doesn't show up/application's not running (I did not throw that in a debugger). You don't even have to use SFML Audio (I mean code-wise), so it might be something while initialisation happens. By the way, the binary is showing up in the task manager, eating 0% CPU power.

Linking statically isn't a problem at all, everything works fine.

I wonder that you don't have that problem. :/ I'm not an expert on programming under Windows (installed MSVC2008 to be able to test that "bug" someone reported on a lib of mine), so maybe I'm missing a setting or something.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
crash with audio on vista/visual studio 2008
« Reply #26 on: October 30, 2009, 11:58:04 am »
Quote
You don't even have to use SFML Audio (I mean code-wise)

But it's still link to sfml-audio, right? I mean, if you unlink sfml-audio.lib then does it work fine?

Quote
I wonder that you don't have that problem

I always use the static libraries for testing.
Laurent Gomila - SFML developer

Tank

  • SFML Team
  • Hero Member
  • *****
  • Posts: 1486
    • View Profile
    • Blog
    • Email
crash with audio on vista/visual studio 2008
« Reply #27 on: October 30, 2009, 02:45:09 pm »
Quote from: "Laurent"
But it's still link to sfml-audio, right? I mean, if you unlink sfml-audio.lib then does it work fine?

Exactly.

Quote
I always use the static libraries for testing.

Okay I see.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
crash with audio on vista/visual studio 2008
« Reply #28 on: October 30, 2009, 02:59:12 pm »
Ok, so it must really be related to the global audio manager. Too bad...
Laurent Gomila - SFML developer

 

anything