Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-04

OpenAL

3 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

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

Reply by email

Kjow
to Kjow: I need to add 3D sound to my app, but I can't find any free-working solution for a…

2011/4/1 Kjow :

Show quoted text 19 lines
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

Reply by email