# OpenAL Audio Library Testing [Update 6]

This topic is 4722 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Update 6: Project and documentation updated and now uploaded. Take a look at the documentation to see some of the changes. The most recent updates include making sure to use the DirectSound3D device first, then the default. On one test with a SB Live, the ceaative device did not work with OpenAL. I am still in need of some more testers if there is anyone left intrested. I have recently completed *six* updates as you can see and will continue to work on this project. I have managed to get the file download to 488kb (used to be over 2MB!). I have had one rare case that the program just did not work at all. If this happens and you are still intrested, the reason is because of something with MFC and your computer [lol]. I have a simple console version avaliable that plays an .ogg file, but it is as boring as dirt. Nevertheless, you can still see if it works [wink] I have had great testers so far. Thanks guys! I have found a lot of bugs because of you.
GameDev Name:
Name for Credit:
Processor:
Ram:
Sound Card:

Did everything work according to the tutorial:
(ie. Did the program run as expected and you were able to follow the tutorial fine)

Did you have any problems at all:
(ie. Tutorial was too complex)

Did anything not seem to work:
(ie. Position, pitch, etc...)

(ie. Ran slow...)

Thank you for your time and efforts as always! - Drew Benton [Edited by - Drew_Benton on May 25, 2005 9:51:48 PM]

##### Share on other sites
Hmph. Well, I downloaded your MFC app, ran it, and while attempting to open an audio file got the very informative error message :
"Runtime Error ! This application has requested Runtime to terminate it in an unusual way."

Your log reports that OpenAL was unable to be initialized ... which is strange because the .dll was in the same folder as the MFC app.

Log dump :
I      OpenAL.cpp[0096]02/14 14:27 Failed to Initialize Open ALI      OpenAL.cpp[0096]02/14 14:27 Failed to initialize Open ALI      OpenAL.cpp[0096]02/14 14:30 Failed to Initialize Open ALI      OpenAL.cpp[0096]02/14 14:30 Failed to initialize Open AL

Anything I should have done prior to launching the app ?

<edit :: I also tried throwing the OpenAL.dll into the windows/system32 folder, which didn't help. Are you sure you're loading the DLL correctly ?

##### Share on other sites
Well first off, let me say thank you for trying it out [smile]. Now that error message is related to the creation of the OpenAL device and context. To solve this, I would first ask, do you have the latest OpenAL installed on your computer? If not, can you download it here. It is only 332kb and it installs really quickly (It was instantly for me).

Now if you do have OpenAL installed and those updated drivers did not work at all, then I have made a few little updates that might make a difference. You can get the new file here. I do not think you will need the MFC .dlls anymore since I linked it statically.

The changes I made were to put a more useful error message, so you know exactly why it cannot be initialized as well as if it fails. It will now try the default device if a custom one cannot be used. It will now also abort if there is something wrong with initialization, but still write to the log file before it exits. Can you give that a try and let me know how that works out. I hope it will be fixed after adding in the drivers. There is also a new update I have made at the top.

Thanks!
- Drew

[Edited by - Drew_Benton on May 25, 2005 9:56:00 PM]

##### Share on other sites
When I run the file, it does nothing but making logfiles. Logger.log = 1,33MB, all filled with the following messages:

I      OpenAL.cpp[0384]02/16 10:11 void OpenAL::Initialize() -> alGenSources ( MAXSOURCES, Sources ): AL_INVALID_VALUEI      OpenAL.cpp[0689]02/16 10:11 OpenAL::StopAll()-> alSourceStopv ( MAXSOURCES, Sources ): AL_INVALID_NAMEI      OpenAL.cpp[0689]02/16 10:11 OpenAL::StopAll()-> alSourceStopv ( MAXSOURCES, Sources ): AL_INVALID_NAMEI      OpenAL.cpp[0689]02/16 10:11 OpenAL::StopAll()-> alSourceStopv ( MAXSOURCES, Sources ): AL_INVALID_NAMEI      OpenAL.cpp[0689]02/16 10:11 OpenAL::StopAll()-> alSourceStopv ( MAXSOURCES, Sources ): AL_INVALID_NAMEI      OpenAL.cpp[0689]02/16 10:11 OpenAL::StopAll()-> alSourceStopv ( MAXSOURCES, Sources ): AL_INVALID_NAMEetc.

##### Share on other sites

It seems that by lowering the sources to 16, the problem was solved. I am definitly making a note of that for the documentations. I do not know if it is a result of just an old sound card or what...

Thank you for testing it out Pipo DeClown! Ok now for the problem. You are the second reported case with that error of not being able to generate that many sources. I have updated the library to version .5 now which sets the sources to 16 instead. If you can please give that a try and it should hopefully work.

Can you please PM me with information of your computer? I will be getting the information from the other tester who had the same problem soon.

Thanks again for your time!

- Drew Benton

[Edited by - Drew_Benton on May 25, 2005 9:24:10 PM]

##### Share on other sites
Why can't I get it to work? I've selected the file and then I changed settings click Apply then Play, still no changes in anything, not even loop!

##### Share on other sites
Sorry my intention for my post was not to hijack but was to provide help to the author. While creating this library I had to face a lot of difficulties. None of the tutorials prooved useful to me. In fact I had to compile features from one and a few code samples to get it working :)

And yes I admit it is my mistake to do some advertisement :(

Sorry about that ... I will create my own thread ... since the admin encouraged me to do so :)

Thanks!

##### Share on other sites
Quote:
 Original post by Pipo DeClownWhy can't I get it to work? I've selected the file and then I changed settings click Apply then Play, still no changes in anything, not even loop!

Ok Pipo, to change the settings of a sound, you must have the sound playing already [smile]. Here is my quick tutorial from the docs:

Quick Tutorial:
    1. Set the Group number if desirable before you add file(s).   2. Click File->Open to add WAV or OGG file(s).   3. To use a single file: click on the file name in the “Select File” combo       box and choose an action below.   4. To use a group: click on the group number in the “Select Group” combo box       and choose an action below.   5. To modify the file - while it is playing, make sure it is selected in the       correct “Select” combo box, change the settings and choose the       corresponding “Apply To” button.   6. You can change the group at any time, remember to select the file.

Sorry for that nasty inconvience. I am working on an updated version so everything is stored so you can change it at anytime. So far that is the biggest complaint - that nothing is stored or kept, so that is something I will be working on for the next update. If you have any more troubles feel free to ask. I have some additional notes about values for the properties in the documentation. You can take a quick glance at the web version as well.

Your time and efforts are much appreciated, so thank you as always. Thanks!

- Drew Benton

[Edited by - Drew_Benton on May 25, 2005 9:15:19 PM]

• 11
• 10
• 10
• 11
• 12