Has anyone been experiencing problems with Lazarus 2.0 and OpenAL?
I have been getting crashes since I updated, but I havn't really figured out what is the cause yet.
Cheers!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Daniel, i've take look quick (i said GLSMOpenAL is heavey buggy (in Delphi to) this unit need more rewriting. So in, change procedure TGLSMOpenAL.KillSource(aSource : TGLBaseSoundSource); by the following code
procedureTGLSMOpenAL.KillSource(aSource : TGLBaseSoundSource);vari, currentBufferTag, bufferCount:integer;beginifaSource.ManagerTag<>0thenbeginalSourceStop(ASource.ManagerTag);alDeleteSources(1, PALuint(@ASource.ManagerTag));ASource.ManagerTag:=0;//Wecan't just delete buffer, because other sources may be using it//sowecounthowmanysourcesareusing, thendeleteifit's the only one//using.
//SameforASource.Sample.ManagerTag, wesettozeroonceit's no longer//beingusedbyanyothersourcesifAssigned(ASource.Sample)thenbegincurrentBufferTag:=ASource.Sample.ManagerTag;bufferCount:=0;ifcurrentBufferTag<>0thenbeginfori :=0toSources.Count-1dobeginifAssigned(Sources[i])thenifAssigned(Sources[i].Sample)thenifSources[i].Sample.ManagerTag=currentBufferTagthenbeginbufferCount:=bufferCount+1;end;end;ifbufferCount>=1thenbeginalDeleteBuffers(1, PALuint(@ASource.Sample.ManagerTag));ASource.Sample.ManagerTag :=0;end;end;end;end;end;
It's not a nice patch but it will do the job.
For information i'm currently coding a new library partially based on GLScene , i hope i'll can make avaible soon as possible (max in two montth) But actually any 3D openGL available yet, it's in a "wip" in waiting, take look a those samples
ONLY AND TOTALLY IN SOFTWARE RENDERING, NO OPENGL, NO DIRECTX, NO SDL, NO VULKAN ;)
Hi Daniel yes but before i deleted the behaviour of mickey object in scene editor. Remember MP3 is not supported by OpenAL with current code in GLScene. just WAV at this stage
Still having some random crashes in my main program....
I am trying to install the winOnly package so I can try the waveOut.
But when I compile and install it, the components doesn't show.
I am using Lazarus 2.0 and GlScene 7125
Have you got waveOut working on Lazarus?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I tried rolling back to Lazarus 1.8.4....
I have only tested my main program a little, but so far, it seems to have stopped the exceptions!?!
I am clueless on this one....
edit: Naah, now it happend again....
Last edit: Daniel 2020-01-31
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi everyone!
Has anyone been experiencing problems with Lazarus 2.0 and OpenAL?
I have been getting crashes since I updated, but I havn't really figured out what is the cause yet.
Cheers!
Hi again!
I get the crash when I create two different sounds on two different emitters at the same time.
Like this:
What can I add in the code to prevent it from calling an error?
Kind regards,
Daniel
Hi Daniel, i've take look quick (i said GLSMOpenAL is heavey buggy (in Delphi to) this unit need more rewriting. So in, change procedure TGLSMOpenAL.KillSource(aSource : TGLBaseSoundSource); by the following code
It's not a nice patch but it will do the job.
For information i'm currently coding a new library partially based on GLScene , i hope i'll can make avaible soon as possible (max in two montth) But actually any 3D openGL available yet, it's in a "wip" in waiting, take look a those samples
ONLY AND TOTALLY IN SOFTWARE RENDERING, NO OPENGL, NO DIRECTX, NO SDL, NO VULKAN ;)
https://www.youtube.com/watch?v=1ytUbSiUvjk
https://www.youtube.com/watch?v=NexLqs3Rie0
https://www.youtube.com/watch?v=VZX4RmzpwTU
https://www.youtube.com/watch?v=x7QYA2ZebPk
https://www.youtube.com/watch?v=dU6iDJcLJUg (with a new sound engine based on OpenAL yeah !!! )
Cheers
See you soon
Thanks again! I will try it out!
Yes, I know you are working on it Waiting eagerly to try it out.
The 2D bumpmapping looks amazing!!
Sadly it did not work. I still get an exception:
Hi Daniel
Do you put GLSoundLibrary on form or do you create it at runtime ?
Do you load sound in IDE or by code ?
I've no exception with the 3DSoundOpenAl sample i've tested yesterday
What happens if you change the button1.click code to this:
Do you get an exception then?
Cheers
Hi Daniel yes but before i deleted the behaviour of mickey object in scene editor. Remember MP3 is not supported by OpenAL with current code in GLScene. just WAV at this stage
so :
will work
Cheers
Yeah, that works!
That was a bad mistake from my part.
Thansk Jerome!
Still having some random crashes in my main program....
I am trying to install the winOnly package so I can try the waveOut.
But when I compile and install it, the components doesn't show.
I am using Lazarus 2.0 and GlScene 7125
Have you got waveOut working on Lazarus?
I tried rolling back to Lazarus 1.8.4....
I have only tested my main program a little, but so far, it seems to have stopped the exceptions!?!
I am clueless on this one....
edit: Naah, now it happend again....
Last edit: Daniel 2020-01-31