Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (686)
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 3049 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  
You cannot reply to this message, because it is very, very old.

Dwinin (63 views)
2015-11-07 13:29:08

Rems19 (77 views)
2015-10-31 01:36:56

Rems19 (69 views)
2015-10-31 01:32:37

williamwoles (104 views)
2015-10-23 10:42:59

williamwoles (91 views)
2015-10-23 10:42:45

Jervac_ (105 views)
2015-10-18 23:29:12

DarkCart (132 views)
2015-10-16 00:58:11

KaiHH (115 views)
2015-10-11 14:10:14

KaiHH (153 views)
2015-10-11 13:26:18

BurntPizza (167 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 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!