Results 1 to 6 of 6

Thread: [OpenAL] Maximum distance at which sound can be heard

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    For the record, solution is:

    1. use a proper distance model.

    alDistanceModel(AL_LINEAR_DISTANCE_CLAMPED);

    2. sources need AL_MAX_DISTANCE - you can also add AL_REFERENCE_DISTANCE and AL_ROLLOFF_FACTOR for good measure to have better effects.

    3. AL_ORIENTATION must be correctly set on listener!!

    Yes, i'm replying to my own thread from 2008, i only now correctly solved this properly.
    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

  2. #2
    Quote Originally Posted by JernejL View Post
    Yes, i'm replying to my own thread from 2008, i only now correctly solved this properly.
    There is nothing wrong about this. Your answer may help others to spend so much time looking for correct solution as you did

  3. #3
    Exactly this thread actually popped up in google when searching, so i hope it helps someone.
    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
  •