Results 1 to 10 of 43

Thread: OpenAL priority "Intelligent Source Manager"

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    OpenAL priority "Intelligent Source Manager"

    Openal is stupid with its source number limit, you cannot have more than 16 sources... a possible solution is, to create a sound manager, which will automaticly create and destroy physical sound sources of a virtual sound sources list, depending on their priority (like distance to the listener).

    i intend to write one, but i'm just asking here first if anybody has one already

    EDIT:

    from page 2:

    This is now improved version, i added full audio system pause (!) fixed sorting (also now uses bidirectional bubble sort, but something better should be used like quicksort? )

    I added audio buffer loading and searching (no unloading but you can do it manually yourself)

    The source-swaping works well, i just tested it in my game with 50 cars in same scene, and it performs as expected. distant sounds are swaped-out and near sounds are swaped-in to get smoothly around the openal 30 playing sounds limit.

    Link:
    https://github.com/JernejL/VirtualOpenAL

    This source code is free for any use. i would especialy like to see someone add it to glscene, which currently only supports fmod and bass, which are both commercial products.
    [/code]
    Last edited by JernejL; 21-05-2018 at 07:11 AM. Reason: fixed link (after 5 years)
    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

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
  •