weird "An impossible ALUT error condition was reported?!?" problem
Sammy Fischer <[email protected]>
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <[email protected]> |
I'm getting "impossible ALUT error condition was reported?!?" errors in
my program, and it's driving me crazy.
I create 2 buffers from files (both samples play alright, if I switch
them out), then create sources using
ALuint createNewSource( ALuint buffer, float minGain, float maxGain,
bool looping, float maxDistance, float rolloff, float refDistance) {
ALuint s;
cout << "retrieving Buffer Nr." << buffer <<endl;
mError = alGetError ();
if (mError != ALUT_ERROR_NO_ERROR)
{
cout << "WHY?!" << endl;
LogManager::getSingletonPtr()->logMessage(alutGetErrorString
(mError));
return ALUT_ERROR_INVALID_OPERATION;
}
alGenSources (1, &s);
alSourcei (s, AL_BUFFER, buffer);
alSourcei (s, AL_LOOPING, looping);
alSourcef (s, AL_MAX_DISTANCE, maxDistance);
alSourcef (s, AL_REFERENCE_DISTANCE, refDistance);
alSourcef (s, AL_ROLLOFF_FACTOR, rolloff);
alSourcef (s, AL_MIN_GAIN, minGain);
alSourcef (s, AL_CONE_OUTER_GAIN, minGain);
alSourcef (s, AL_CONE_INNER_ANGLE, maxGain);
alSourcef (s, AL_MAX_GAIN, maxGain);
mSource.push_back( s);
mError = alGetError ();
if (mError != ALUT_ERROR_NO_ERROR)
{
LogManager::getSingletonPtr()->logMessage(alutGetErrorString
(mError));
alutExit ();
return ALUT_ERROR_INVALID_OPERATION;
} else {
cout << "no Error here" << endl;
LogManager::getSingletonPtr()->logMessage(alutGetErrorString
(mError));
}
return s;
}
the (slightly annotated for besser understanding) log I'm creating reads
like this :
[first I load the two sound files using alureCreateBufferFromFile( filename)
********* Initialize Sound
********* Initializing OpenAL *********
++ got device
--------- Initializing Done!
Buffer Nr.179443192
Buffer Nr.179321872
--------- Loading Sounds Done!
[next I create two instances of the first sound. The following lines are
repeated twice, showing that it works both times. I can also play the
two sounds without problems]
setting up wizard shield sound
retrieving Buffer Nr.179443192
no Error here
No ALUT error found
end wizard shield sound
[ and directly after that, I try to create a source for the second sound]
-------- creating fireballs
Mesh: Loading fireball.mesh.
Texture: lava.png: Loading 1 faces(PF_A8R8G8B8,128x128x1) with 5
generated mipmaps from Image. Internal format is PF_A8R8G8B8,128x128x1.
No ALUT error found
setting up fireball sound
retrieving Buffer Nr.179321872
WHY?!
An impossible ALUT error condition was reported?!?
Anybody got ANY idea what could be happening to stop me from creating
sources from the second buffer? As I said, switching the sound files
showed me that the files in themselves are working. and the two ~shield~
sounds work perfectly (no matter which wav is actually used). I use the
same methods for both sounds.
oO
I'll gladly give more informations or paste more code if needed. It's
REALLY driving me crazy right now.
bbye,
Sammy
_______________________________________________
Openal mailing list
[email protected]
http://opensource.creative.com/mailman/listinfo/openal