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

Author Topic: ALCmmdevPlayback_resetProxy error  (Read 3481 times)

0 Members and 1 Guest are viewing this topic.

etump

  • Newbie
  • *
  • Posts: 4
    • View Profile
ALCmmdevPlayback_resetProxy error
« on: June 06, 2018, 10:56:11 am »
Hello, I had an error in my SFML project:
When I wanted to load a sound, I had the error:

AL lib: (EE) ALCmmdevPlayback_resetProxy: Failed to check format support: 0x80040154
AL lib: (EE) ALCmmdevPlayback_resetProxy: Failed to initialize audio client: 0x80070424
Failed to create the audio context
An internal OpenAL call failed in soundbuffer.cpp(46).
Expression:
   alGenBuffers(1, &m_buffer)
Error description:
   AL_INVALID_OPERATION
   The specified operation is not allowed in the current state.

My source code is :

   sf::SoundBuffer Buffer;
   if (!Buffer.loadFromFile("lavalidation.ogg"))
      return -1;
   sf::Sound Sound;
   Sound.setBuffer(Buffer);
   Sound.play();
   
   
   sf::Music music;
   if (!music.openFromFile("lavalidation.wav"))
      return -1; // erreur
   music.play();

(I tested both of the version to play a sound)


My configuration is Windows 10, VS2017 x64, SFML 2.4.2.


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10821
    • View Profile
    • development blog
    • Email
Re: ALCmmdevPlayback_resetProxy error
« Reply #1 on: June 06, 2018, 11:56:32 am »
Can you provide the wav file? Might be some odd format.

Also did you make sure the OpenAL DLL that SFML ships is being used and not some DLL that may be installed somewhere on your system?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

etump

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: ALCmmdevPlayback_resetProxy error
« Reply #2 on: June 06, 2018, 05:15:36 pm »
I guessed it wasn't a problem of format because the program worked on an other computer. I'll try to provide the file here if a change of DLL doesn't work.

How can I check this?
I have copied in the "Debug" file all the  SFML's DLL from the "bin" file of the library, including an "openal32.dll".

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10821
    • View Profile
    • development blog
    • Email
Re: ALCmmdevPlayback_resetProxy error
« Reply #3 on: June 06, 2018, 05:53:19 pm »
So the openal32.dll that comes with SFML is next to the exe you're running?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

etump

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: ALCmmdevPlayback_resetProxy error
« Reply #4 on: June 06, 2018, 06:16:20 pm »
Yes, I don't need to copy it in another place?

etump

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: ALCmmdevPlayback_resetProxy error
« Reply #5 on: June 18, 2018, 05:49:40 pm »
I have maybe found a solution:
I use "Resolve sound problems" by a right-click on the "sound" icon of the bottom right of the screen.
It seems to work for the moment.