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

Author Topic: [Noob alert] OpenAL32.dll missing error  (Read 3286 times)

0 Members and 1 Guest are viewing this topic.

oOhttpOo

  • Newbie
  • *
  • Posts: 40
    • View Profile
[Noob alert] OpenAL32.dll missing error
« on: April 15, 2015, 08:01:40 pm »
I am trying to play a .wav file but it won't work. I have got the correct dependencies and links etc setup, however for my code it says "The program can't start because OpenAL32.dll is missing from your computer". However it IS in my linker settings, and I can see it in the SFML files. So why isn't it being found? My code:
#include <SFML/Graphics.hpp>
#include <SFML/Window.hpp>
#include <SFML/Audio.hpp>

int main()
{
        sf::Window window(sf::VideoMode(800, 600), "My window");

        // run the program as long as the window is open
        while (window.isOpen())
        {
                sf::SoundBuffer buffer;
                buffer.loadFromFile("WhatCan.wav");
                // load something into the sound buffer...

                sf::Sound sound;
                sound.setBuffer(buffer);
                sound.play();
               
               
                // check all the window's events that were triggered since the last iteration of the loop
                sf::Event event;
                while (window.pollEvent(event))
                {
                        // "close requested" event: we close the window
                        if (event.type == sf::Event::Closed)
                                window.close();
                }
        }

        return 0;

}
 

oOhttpOo

  • Newbie
  • *
  • Posts: 40
    • View Profile
Re: [Noob alert] OpenAL32.dll missing error
« Reply #1 on: April 15, 2015, 10:19:47 pm »
nobody knows? Oh.

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: [Noob alert] OpenAL32.dll missing error
« Reply #2 on: April 15, 2015, 10:24:49 pm »
nobody knows? Oh.
You can't conclude that based on just a few hours of silence. Have a bit of patience; say 48hrs at least.

As for your problem: is the library in a location where it will actually be found at runtime? Such locations would include the directory of your executable and any directory in your PATH + whatever other locations the Windows runtime linker searches (I can't remember - look it up).
« Last Edit: April 15, 2015, 10:27:35 pm by Jesper Juhl »

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: [Noob alert] OpenAL32.dll missing error
« Reply #3 on: April 15, 2015, 10:25:31 pm »
Be patient, it's quite rude to push your thread after only 2 hours.

By the way, this exact problem has been solved an estimated billion times already (in this forum and the Internet in general), have you even searched for it?
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

 

anything