Hello,
i have a joal initializing code which worked on tiger )mac os x 10.4.10) but it doesn’t work at Leopard (10.5)
When i run it, i think some thread problem appers, i see the “waiting” cursor and nothing happens, my jogl code doesn’t get the control.
Here it is:
deviiceName = "Core Audio";
defauldDeviiceName =
ConfigurationReader.getStringValueHandlingNull( ConfigurationReader.result, "openal_default" );
alc = ALFactory.getALC();
al = ALFactory.getAL();
ALCdevice device;
ALCcontext context;
String deviceSpecifier;
// Get handle to device.
try{
device = alc.alcOpenDevice( deviiceName );
}catch(Exception e){
device = alc.alcOpenDevice( defauldDeviiceName );
}
// Get the device specifier.
deviceSpecifier = alc.alcGetString(device, ALC.ALC_DEVICE_SPECIFIER);
System.out.println("Using device " + deviceSpecifier);
// Create audio context.
context = alc.alcCreateContext(device, null);
// Set active context.
alc.alcMakeContextCurrent(context);
// Check for an error.
if (alc.alcGetError(device) != ALC.ALC_NO_ERROR)
return AL.AL_FALSE;
return AL.AL_TRUE;