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.