OpenAL is pre-installed on MacOS X and iOS. What about Linux - you can always use dependencies list, but Linux system with games and without OpenAL - something far from reality, IMHO )
OpenAL is pre-installed on MacOS X and iOS. What about Linux - you can always use dependencies list, but Linux system with games and without OpenAL - something far from reality, IMHO )
Last edited by Andru; 07-09-2011 at 10:14 AM.
OpenAL is pretty much the best thing you could use for cross-platform. If you are doing windows only, you can just use DirectSound if you prefer, but I woudn't try using much else unless you want headaches while trying to port your sound system over to new platforms. You'll just end up having to rewrite your games sound code for each platform.
Linux users shouldn't need user-friendliness, they're all super-geeks anyways. Just tell them what they need. Mac users will love you for using OpenAL and putting everything into one single bundle nicely/properly. Esp. those that like the new Launchpad for Lion.
Games:
Seafox
Pages:
Syntax Error Software
itch.io page
Online Chess
http://gameknot.com/#paul_nicholls
Just dropping a line to say two things really:
1. OpenAL
2.
That wasn't entirely true when I started out, but now I'd have to almost agree. Ever since I stopped using a mouse for most things and replaced it by Ctrl + Alt + t and Alt + F2 with the ls, top, cat and similar reflexes - windows feels ancientlinux users shouldn't need user-friendliness, they're all super-geeks anyways.
I once tried to change the world. But they wouldn't give me the source code. Damned evil cunning.
Games:
Seafox
Pages:
Syntax Error Software
itch.io page
Online Chess
http://gameknot.com/#paul_nicholls
Ok, I have now made an OpenAL sound audio class, but i am having troubles;
I have the code below:
Code:const cMaxSources = 10; type TxeAudio = class(TxeBaseObject) private FSounds : TStringList; FSourcePool : array[0..cMaxSources - 1] of TALuint; publicBut for some reason when I call alGenSources(), my FSourcePool array is all zeros still, and I am getting no error (or log file output).Code:constructor TxeAudio.Create; var ALResult: TALenum; begin inherited Create(False); if not InitOpenAL then begin LogFile_LogMessage('Error initializing OpenAL!'); end; alGenSources(cMaxSources,@FSourcePool[0]); ALResult := alGetError; if ALResult <> AL_NO_ERROR then begin LogFile_LogMessage('Error creating OpenAL sources!'); end;
Is this normal?
cheers,
Paul
Games:
Seafox
Pages:
Syntax Error Software
itch.io page
Online Chess
http://gameknot.com/#paul_nicholls
I don't know if I am having trouble as I had to modify the openal.pas file to compile under Delphi 2010?
I changed al PChar to PAnsiChar and Char to AnsiChar for example...
Does anyone here have an openal.pas file that is already updated to work under D2010/freepascal?
cheers,
Paul
Games:
Seafox
Pages:
Syntax Error Software
itch.io page
Online Chess
http://gameknot.com/#paul_nicholls
Bookmarks