[Lazarus] OpenAL

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] OpenAL

Kjow
Hi all,

I need to add 3D sound to my app, but I can't find any free-working
solution for a commercial, cross platform, project (FMOD or BASS
should work, but they costs, and I can't affort this for now).

So, I was looking for OpenAL, (here:
http://wiki.freepascal.org/Multimedia_Programming#Using_the_OpenAL_Library),
but following delphi instructions (here:
http://www.noeska.com/doal/tutorials.aspx ) I get access violation
(SIGSEGV error on:
openal.pas
row 2187: Device := alcOpenDevice(nil); // this is supposed to select
the "preferred device". )

Can you help me to find a solution?

Thank you in advance,
Kjow

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

[Lazarus] OpenAL

Kjow
2011/4/1 Kjow <[hidden email]>:
> Hi all,
[cut]
> Can you help me to find a solution?
>
> Thank you in advance,
> Kjow

In attachment the test project that I'm using (compressed with 7-zip)

Kjow

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

OpenALFPC.7z (23K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] OpenAL

Kjow
In reply to this post by Kjow
2011/4/1 Kjow <[hidden email]>:

> Hi all,
>
> I need to add 3D sound to my app, but I can't find any free-working
> solution for a commercial, cross platform, project (FMOD or BASS
> should work, but they costs, and I can't affort this for now).
>
> So, I was looking for OpenAL, (here:
> http://wiki.freepascal.org/Multimedia_Programming#Using_the_OpenAL_Library),
> but following delphi instructions (here:
> http://www.noeska.com/doal/tutorials.aspx ) I get access violation
> (SIGSEGV error on:
> openal.pas
> row 2187: Device := alcOpenDevice(nil); // this is supposed to select
> the "preferred device". )
>
> Can you help me to find a solution?
>
> Thank you in advance,
> Kjow

It seems that I was simply missing to initialize OpenAL with:

InitOpenAL;

before everything on FormCreate.

Now I'm studing the rest of tutorial...

Regards,
Kjow

--
_______________________________________________
Lazarus mailing list
[hidden email]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus