Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (753)
Games in Android Showcase (228)
games submitted by our members
Games in WIP (842)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print Error opening default OpenAL device  (Read 3871 times)
0 Members and 1 Guest are viewing this topic.
Offline GregBz

Junior Newbie

« Posted 2007-08-22 22:16:22 »

Though I can run the Point Sound demo from webstart.  I get the following error when I try it in code with Idea  IDE  and from a command line . Error opening default OpenAL device
   at org.jdesktop.j3d.audioengines.joal.JOALMixer.initialize(

I have downloaded all the jars and put the dlls in the application paths, I have no unsatisfied link errors.  I have searched the web High and Low for a post with the same problem.  What am I missing.



Thanks in advance

Offline Ultraq

Junior Devvie

That's what she said

« Reply #1 - Posted 2007-08-23 07:21:32 »

You've got all the JARs and DLLs needed to start a JOAL app, so UnsatisfiedLinkErrors are the least of your worries.  From the stack trace you've given, it seems the problem is internal somehow.  The code in surrounding line 71 is:

68: String deviceName = null;
69: ALCdevice d = alc.alcOpenDevice(deviceName);
70: if (d == null) {
71:   throw new ALException("Error opening default OpenAL device");
72: }

Considering this works in webstart but not Idea, I'd suspect that somehow webstart is finding an OpenAL sound device, whereas the code when run from Idea isn't.

Do you have the latest drivers installed for your soundcard, and do they drivers include OpenAL drivers?  My guess is that webstart is using the OpenAL software device provided by wrap_oal.dll, whereas when running it from Idea it tries to find OpenAL drivers in your Windows/System32 directory and fails to fallback to the software device.
If your sound drivers don't include OpenAL, you can install an OpenAL software device (much like that in the webstart version of the sound demos) by downloading the Windows installer from

Failing all that, could you see if any OpenAL devices are listed by the following code:

ALC alc = ALFactory.getALC();
System.out.println("Available devices: " + alc.alcGetDeviceSpecifiers(null, ALC_DEVICE_SPECIFIERS));

Ultraq's Final MooCow
Bits and Pieces by Emanuel Rabina
Offline GregBz

Junior Newbie

« Reply #2 - Posted 2007-08-23 09:30:05 »

OK..  Fixed it
For the record
1) Thank you Ultraq for the posting.  It set me on the correct vector. The example using the api ended up been this.

        ALC alc = ALFactory.getALC();
       System.out.println("Available devices: " + alc.alcGetString(null, ALC.ALC_DEFAULT_DEVICE_SPECIFIER));

2) Though the there were no unsatisfied link errors.  The following dll's "OpenAL32.dll, wrap_oal.dll" needed to be in a published native class path. It was just not enough to be discovered and loaded by the JVM.

Thanks Again

Pages: [1]
  ignore  |  Print  

ivj94 (586 views)
2018-03-24 14:47:39

ivj94 (49 views)
2018-03-24 14:46:31

ivj94 (383 views)
2018-03-24 14:43:53

Solater (63 views)
2018-03-17 05:04:08

nelsongames (110 views)
2018-03-05 17:56:34

Gornova (159 views)
2018-03-02 22:15:33

buddyBro (704 views)
2018-02-28 16:59:18

buddyBro (93 views)
2018-02-28 16:45:17

xxMrPHDxx (494 views)
2017-12-31 17:17:51

xxMrPHDxx (734 views)
2017-12-31 17:15:51
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!