Jump to content

Openal tip


Alienhead
 Share

Recommended Posts

If your like me, you might not always be distributing your project via an installer. In which case you don't have many options available other than asking the user to manually install OPENAL drivers.

Here's a trick you can do to prevent having to bug the user about those damn OPENAL drivers.

Download the oalinst.exe from the site, put it in your project folder.
Add this snipplet to the top of your Main.lua script.

        -- OAL drivers

 

        stream = FileSystem:ReadFile("openal.installed")
        if stream == nil then
            os.execute('start /min "window title" "oalinst.exe" "-SILENT"') -- openal installs
            FileSystem:CreateFile("openal.installed")
        else
            stream:Release()
        end

 

  • Thanks 3

I'm only happy when I'm coding, I'm only coding when I'm happy.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...