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

Author Topic: 2.6.2 to 3.0 WSAPI  (Read 1967 times)

0 Members and 1 Guest are viewing this topic.

HeinzK

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
    • ZwiAner
    • Email
2.6.2 to 3.0 WSAPI
« on: February 15, 2025, 10:21:57 am »
miniaudio WARNING: [WASAPI] Failed to find suitable device format for device info retrieval.Download-Protokoll:
//> SFML:
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/System.hpp>
#include <SFML/Audio.hpp>
#include <SFML/OpenGL.hpp>
#include <SFML/Network.hpp>
What I have to do?
The trees, that obstruct the view on the forest, can be allowed to fall! (Die Bäume, die die Sicht auf einen Wald versperren, dürfen gefällt werden!)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11145
    • View Profile
    • development blog
    • Email
Re: 2.6.2 to 3.0 WSAPI
« Reply #1 on: February 15, 2025, 03:57:04 pm »
You get that just by including SFML headers or do you have any other code?

Do you have an audio device?
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

HeinzK

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
    • ZwiAner
    • Email
Re: 2.6.2 to 3.0 WSAPI
« Reply #2 on: February 15, 2025, 05:39:58 pm »
I have used 2.6.2 and OpenAL so far.
The trees, that obstruct the view on the forest, can be allowed to fall! (Die Bäume, die die Sicht auf einen Wald versperren, dürfen gefällt werden!)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11145
    • View Profile
    • development blog
    • Email
Re: 2.6.2 to 3.0 WSAPI
« Reply #3 on: February 15, 2025, 08:35:19 pm »
Yeah, but I'm asking how the error occurs.
You posted some code for some header includes, is that all that is needed? Or do you have additional code?
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

HeinzK

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
    • ZwiAner
    • Email
Re: 2.6.2 to 3.0 WSAPI
« Reply #4 on: February 16, 2025, 10:12:18 am »
.. yes, I need all headers and so far under 2.6.2 OPENAL.
.. Linker/Eingabe: .. openal32.lib ..
.. Question: 3.0.0 .. miniaudio .. is this a replacement for OpenAL, or is it integrated in SFML ?
.. Modified:
... ok, I have removed <openal32.lib> from the program and still have sound.
... but I still have the above warning in the 'output window', which I don't understand.
« Last Edit: February 16, 2025, 11:04:09 am by HeinzK »
The trees, that obstruct the view on the forest, can be allowed to fall! (Die Bäume, die die Sicht auf einen Wald versperren, dürfen gefällt werden!)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11145
    • View Profile
    • development blog
    • Email
Re: 2.6.2 to 3.0 WSAPI
« Reply #5 on: February 16, 2025, 01:59:29 pm »
Yes, you don't need OpenAL anymore with SFML 3, as it's replaced by miniaudio, which is used a header-only library.

I'm trying to understand the source of your error. What's the code that triggers the error (welche Quellcode löst die Warnung aus)?
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

HeinzK

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
    • ZwiAner
    • Email
Re: 2.6.2 to 3.0 WSAPI
« Reply #6 on: February 16, 2025, 02:23:39 pm »
.. the trigger is: loadFromFile

.. and I have discovered the following line in my output window:
avcore\audiocore\client\audioclient\audioclientcore.cpp(469)\AUDIOSES.DLL!00007FF847113A1A: (caller: 00007FF8470C8F5F) ReturnHr(1) tid(3d7c) 8889000E
.. to ..
avcore\audiocore\client\audioclient\audioclientcore.cpp(469)\AUDIOSES.DLL!00007FF847113A1A: (caller: 00007FF8470C8F5F) ReturnHr(213) tid(3d7c) 8889000E
The trees, that obstruct the view on the forest, can be allowed to fall! (Die Bäume, die die Sicht auf einen Wald versperren, dürfen gefällt werden!)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11145
    • View Profile
    • development blog
    • Email
Re: 2.6.2 to 3.0 WSAPI
« Reply #7 on: February 16, 2025, 02:30:26 pm »
Do you compile the audio part of your game in a separate DLL (AUDIOSES.DLL)?
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

HeinzK

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
    • ZwiAner
    • Email
Re: 2.6.2 to 3.0 WSAPI
« Reply #8 on: February 16, 2025, 02:51:28 pm »
.. no ..
The trees, that obstruct the view on the forest, can be allowed to fall! (Die Bäume, die die Sicht auf einen Wald versperren, dürfen gefällt werden!)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11145
    • View Profile
    • development blog
    • Email
Re: 2.6.2 to 3.0 WSAPI
« Reply #9 on: February 16, 2025, 03:21:10 pm »
Do you use any special audio hardware?

Do you know what aduioses.dll is or where that avcore reference is coming from?
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

HeinzK

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
    • ZwiAner
    • Email
Re: 2.6.2 to 3.0 WSAPI
« Reply #10 on: February 16, 2025, 03:49:41 pm »
Lautsprecher(Realtek High Definition Audio)
Treiberdatum: 03.11.2016
Treiberversion: 6.0.1.7977
.. I do not know this dll
Modified:
.. I have found the file, but I still know where it comes from.

« Last Edit: February 16, 2025, 06:50:26 pm by HeinzK »
The trees, that obstruct the view on the forest, can be allowed to fall! (Die Bäume, die die Sicht auf einen Wald versperren, dürfen gefällt werden!)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11145
    • View Profile
    • development blog
    • Email
Re: 2.6.2 to 3.0 WSAPI
« Reply #11 on: February 16, 2025, 07:55:06 pm »
You might want to check if you have any driver updates for your audio card. The DLL being from 2016 might be a bit too old.

As for the warning itself, it's coming from miniaudio, so one would need to check with them why it fails to open the device.

Are you running any audio application in the back, like Reaper or similar which could have requested exclusive access of a device?
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

HeinzK

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
    • ZwiAner
    • Email
Re: 2.6.2 to 3.0 WSAPI
« Reply #12 on: February 17, 2025, 08:54:58 am »
.. driver is up to date.
.. No audio application in the background.
.. The sound works despite the warning.
The trees, that obstruct the view on the forest, can be allowed to fall! (Die Bäume, die die Sicht auf einen Wald versperren, dürfen gefällt werden!)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11145
    • View Profile
    • development blog
    • Email
Re: 2.6.2 to 3.0 WSAPI
« Reply #13 on: February 17, 2025, 09:09:33 am »
Do you get the same error if you run any of the SFML examples that use audio?

Can you provide the code that causes the warning?
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

HeinzK

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
    • ZwiAner
    • Email
Re: 2.6.2 to 3.0 WSAPI
« Reply #14 on: February 17, 2025, 10:03:38 am »
.. no, no further warnings or error messages ... neither in the debug nor in the release.
.. I have a time problem at the moment, but I will try.
The trees, that obstruct the view on the forest, can be allowed to fall! (Die Bäume, die die Sicht auf einen Wald versperren, dürfen gefällt werden!)