Files |  Tutorials |  Articles |  Links |  Home |  Team |  Forum |  Wiki |  Impressum

Aktuelle Zeit: So Jun 16, 2024 05:35

Foren-Übersicht » English » English Programming Forum
Unbeantwortete Themen | Aktive Themen



Ein neues Thema erstellen Auf das Thema antworten  [ 11 Beiträge ] 
Autor Nachricht
 Betreff des Beitrags: OpenAL and FreePascal and Linux
BeitragVerfasst: Do Nov 04, 2004 10:51 
Offline
DGL Member

Registriert: Fr Aug 13, 2004 17:43
Beiträge: 60
Wohnort: Belgien
Hi,

Does somebody has a very basic demo about OpenAL with FreePascal and Linux?

I tried this demo but it doesn't seem to work:
http://www.friends-of-fpc.org/tutorials ... ter02.html
I first translated the header to libopenal.so but I don't hear anything.

I've installed libopenal0-0.0.7-2mdk.i586.rpm and libopenal0-devel-0.0.7-2mdk.i586.rpm. Do I need newer libs?


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Do Nov 04, 2004 12:16 
Offline
DGL Member
Benutzeravatar

Registriert: Di Jul 01, 2003 18:59
Beiträge: 887
Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
The problem with that example is that it chooses DIRECT3D wich is not available under Linux.
Have a look at http://www.noeska.com/doal . The examples are for the moment windows only.

For an half year ago i had something working with Kylix. I try to dig up that code from Linux and post it on the doal site this weekend.

_________________
http://3das.noeska.com - create adventure games without programming


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Do Nov 04, 2004 12:44 
Offline
DGL Member

Registriert: Fr Aug 13, 2004 17:43
Beiträge: 60
Wohnort: Belgien
Thanks.

I changed DirectSound3D to MMSYSTEM of cource.


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Do Nov 04, 2004 13:28 
Offline
DGL Member
Benutzeravatar

Registriert: Di Jul 01, 2003 18:59
Beiträge: 887
Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
But even mmsystem does not exist under Linux. Read tutorial #13 on my site on how to determine what is possible. Also on using the new openal unit you can:

InitOpenAL('libopenal.so');

I do not quite remember the naming of the .so file under linux. So have a look inside those rpm files. Maybe you also have to include the path to the lib.

Let me know if this works or not.

EDIT:

InitOpenAL('libopenal.so');
should be OK.
I uploaded the kylix example for tutorial 13 to my openal site. Strip the gui part and you should have an working free pascal example.
If you have got that working please let me know so i can include it on the doal site.

_________________
http://3das.noeska.com - create adventure games without programming


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Do Nov 04, 2004 19:46 
Offline
DGL Member

Registriert: Fr Aug 13, 2004 17:43
Beiträge: 60
Wohnort: Belgien
Code:
  1.  
  2. defaultDevice := alcGetString(nil,ALC_DEFAULT_DEVICE_SPECIFIER);
  3. deviceList := alcGetString(nil,ALC_DEVICE_SPECIFIER);
  4. writeLn(string(defaultDevice));
  5. writeLn(string(deviceList));
  6.  

Calling this in FreePascal gives an acces violation (in one of the writeln functions).

I tried your demo with kylix. It compiles but when executing the program, I get this:
Code:
  1. relocation error: /home/.../Project1: undefined symbol: initPAnsiStrings


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Do Nov 04, 2004 20:21 
Offline
DGL Member
Benutzeravatar

Registriert: Di Jul 01, 2003 18:59
Beiträge: 887
Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
the used extension does not seem to work properly under linux. You can use it to play sound though. Just do not display those lines.

What kylix do you use? I use Kylix 2 Pro.

_________________
http://3das.noeska.com - create adventure games without programming


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Do Nov 04, 2004 21:55 
Offline
DGL Member

Registriert: Fr Aug 13, 2004 17:43
Beiträge: 60
Wohnort: Belgien
Kylix 3 Open


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Fr Nov 05, 2004 16:51 
Offline
DGL Member
Benutzeravatar

Registriert: Di Jul 01, 2003 18:59
Beiträge: 887
Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
Please try recreating the application with your kylix, follow the tutorial and do the steps. I cannot help you with that as i do not have kylix 3 open edition. Following the tutorial should be easy enough though. Just use the openal.pas i supplied with the kylix 2 example.

_________________
http://3das.noeska.com - create adventure games without programming


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: So Nov 07, 2004 14:23 
Offline
DGL Member
Benutzeravatar

Registriert: Di Jul 01, 2003 18:59
Beiträge: 887
Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
I got an freepascal linux example working.

A new kylix and fpc example is available for download with tutorial #13 on http://www.noeska.com/doal .

_________________
http://3das.noeska.com - create adventure games without programming


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mi Nov 10, 2004 13:33 
Offline
DGL Member

Registriert: Fr Aug 13, 2004 17:43
Beiträge: 60
Wohnort: Belgien
I know. (I'm the same person as Bart from the dgdev thread).


Nach oben
 Profil  
Mit Zitat antworten  
 Betreff des Beitrags:
BeitragVerfasst: Mi Nov 10, 2004 14:11 
Offline
DGL Member
Benutzeravatar

Registriert: Di Jul 01, 2003 18:59
Beiträge: 887
Wohnort: (The Netherlands)
Programmiersprache: fpc/delphi/java/c#
I knew that, but just in case someone else here was following the tread i made the announcement here also.

_________________
http://3das.noeska.com - create adventure games without programming


Nach oben
 Profil  
Mit Zitat antworten  
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 11 Beiträge ] 
Foren-Übersicht » English » English Programming Forum


Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 11 Gäste


Du darfst keine neuen Themen in diesem Forum erstellen.
Du darfst keine Antworten zu Themen in diesem Forum erstellen.
Du darfst deine Beiträge in diesem Forum nicht ändern.
Du darfst deine Beiträge in diesem Forum nicht löschen.
Du darfst keine Dateianhänge in diesem Forum erstellen.

Suche nach:
Gehe zu:  
cron
  Powered by phpBB® Forum Software © phpBB Group
Deutsche Übersetzung durch phpBB.de
[ Time : 0.381s | 17 Queries | GZIP : On ]