Jump to content

  • Log In with Google      Sign In   
  • Create Account


OpenAL alGenBuffers

  • You cannot reply to this topic
1 reply to this topic

#1 FGFS   Members   -  Reputation: 180

Like
0Likes
Like

Posted 15 June 2014 - 06:52 AM

Hi

why could I get a error on second run of:

 

    alGenBuffers(NUM_BUFFERS, Buffers);

    if(alGetError() != AL_NO_ERROR)
        return AL_FALSE;

 

It's a x-plane plugin which is ok but reloading the airplane or after loading another plane with a openal plugin returns AL_FALSE.

Why could such be?

Thanks in advance


Edited by FGFS, 15 June 2014 - 06:52 AM.


Sponsor:

#2 FGFS   Members   -  Reputation: 180

Like
0Likes
Like

Posted 15 June 2014 - 09:13 AM

Now after following:

http://www.xsquawkbox.net/xpsdk/mediawiki/OpenAL_Example

and creating another context it works but I get tons of:

before loading ENGINE_TURBOPROP_inn.wav, oal error=40961!
before loading STARTER_TURBOPROP_inn.wav, oal error=40961!
before loading PROPELLER_OF_AIRPLANE_inn.wav, oal error=40961!

...

in the log. All the time, at first loading, reload also for other planes that use OpenAL. Any ideas? I cannot find anything online and am tempted to ignore it as it works fine.

Thanks







PARTNERS