Results 1 to 5 of 5

Thread: Realy weird OpenAL problem

  1. #1

    Realy weird OpenAL problem

    System: Windows Vista Ultimate
    Compiler: Delphi 7
    Libraries: OpenAL and DirectInput 8

    Hey everyone.

    I got this REALLY weird problem.

    When i connect 2 joysticks to my PC and start my game, OpenAL starts acting weird. All sounds that are played, are looped (Repeated every 5 seconds). So when the game played several sounds, they become an ugly mix of repeating sound fragments.

    This problem only occures on my desktop (which has vista), and not on my laptop (which has XP pro).

    The problem only occurs when i connect 2 joysticks to my computer. These joysticks get enumerated by my own Input module, which is highly based on the Omegainput.pas unit (from the omega package). When my second joystick get's initialized, openAL starts acting like described above.

    I allready tried a lot. A few days ago, i downloaded the latest audio drivers, so they should be OK.
    I also tried some older openAL code (that i wrote a few weeks earlier), but it had the same problem. I reinstalled OpenAL, and i expirimented with some sound settings (Creative audio console). I also tested on my XP laptop (the problem didn't occur there).

    I also noticed that this problem occurs when i put a breakpoint in my initialization code. The breakpoint stops the execution, i wait a few seconds, i hit F9 and when the game starts running, the same bloody OpenAL problem is there. :cry:

    I've got a Creative SoundBlaster Audigy SE (if that matters) :?

    Can someone help me on this? If you have ANY usefull tips or advice, please post!

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

  2. #2

    Realy weird OpenAL problem

    i'd blame that bug on vista or creative's incapable driver programmers.

    You should update drivers immediately, and then try initializing openal with different sound driver.
    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

    Realy weird OpenAL problem

    I guess you're right. I found out that when i select another device like "Generic hardware", the problem is gone. I have to figure out what kind of drivers i have on my system, but i'm sure that one of them is buggy :?

    So a sollution for this problem is to select another Sound-Device. That brings me to my next question:
    How can i enumerate OpenAL compatible Sound-Devices, and let the user select one??

    Does anyone have any info on that? :razz:

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

  4. #4

    Realy weird OpenAL problem

    I thought noeska's openal website had some enumeration examples.

    I think these are always present on windows platform: 'MMSYSTEM', 'Generic Software' , 'DirectSound' , 'Generic Hardware' , 'DirectSound3D'

    default mapping for those:
    'Generic Hardware' -> 'DirectSound3D'
    'Generic Software' -> 'DirectSound'
    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

  5. #5

    Realy weird OpenAL problem

    ah found it!!

    http://www.noeska.com/doal/lesson13.aspx

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

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
  •