Results 1 to 6 of 6

Thread: How to determine whether OpenAL is installed?

  1. #1

    How to determine whether OpenAL is installed?

    Hi everyone

    I have build a simple application that uses OpenAL. Now i want it to check whether OpenAL is installed, so that it can notify the user if isn't.

    The only problem is, that the OpenAL headers use static-linking. So i don't know where to put my "checking-code". And what's the best way to check for a specific OpenAL version??

    Thanks
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  2. #2

    How to determine whether OpenAL is installed?

    you are supposed to copy openal dlls yourself if the system has none..
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

  3. #3

    How to determine whether OpenAL is installed?

    you can use function:
    InitOpenAL(LibName: String): Boolean;
    with the unit you can download from: http://www.noeska.com/doal/downloads.aspx
    that uses dynamic loading.

    PS looking at the code now it seems that
    Code:
    if &#40;LibHandle <> 0&#41; then
    is placed to low it should be placed before:
    Code:
    alGetProcAddress &#58;= GetProcAddress&#40;LibHandle, 'alGetProcAddress'&#41;;
    Now when calling InitOpenAl it should return true when openal is available and false when not.
    http://3das.noeska.com - create adventure games without programming

  4. #4
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    How to determine whether OpenAL is installed?

    Quote Originally Posted by Delfi
    you are supposed to copy openal dlls yourself if the system has none..
    This won't work if you are planning on a Linux release.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  5. #5

    How to determine whether OpenAL is installed?

    Ah thanx guys


    PS looking at the code now it seems that
    Code:

    if (LibHandle <> 0) then

    is placed to low it should be placed before:
    Code:
    alGetProcAddress := GetProcAddress(LibHandle, 'alGetProcAddress');

    Now when calling InitOpenAl it should return true when openal is available and false when not.
    I fixed it... thanx for pointing that out


    I'm trying the new OpenAL header (it's al.pas + alut.pas + altypes.pas, all in one :razz: )
    Can i use it just like the previous headers, except for the InitOpenAL call in the beginning?

    Do i need to Release the DLL when my app finishes? :?
    Coders rule nr 1: Face ur bugz.. dont cage them with code, kill'em with ur cursor.

  6. #6

    How to determine whether OpenAL is installed?

    Creative provides an openal runtime installer for that. It should be included in the coresdk.

    Linux should work also (even) with fpc.
    http://3das.noeska.com - create adventure games without programming

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •