Java-Gaming.org    
Featured games (78)
games approved by the League of Dukes
Games in Showcase (426)
Games in Android Showcase (89)
games submitted by our members
Games in WIP (466)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Considering using JOAL  (Read 4138 times)
0 Members and 1 Guest are viewing this topic.
Offline Vorax

Senior Member


Projects: 1


System shutting down in 5..4..3...


« Posted 2005-04-13 02:48:35 »

I have been developing a game/engine using JOGL for several months and I have reached the stage where I must choose a sound API.  I am considering using JOAL, but have a few questions:

1) Does JOAL support MP3 files?
2) I saw there is ogg support as an extension, can I trust this will work for the majority?
3) How stable is the API?  
4) Is it still supported?
5) Given a choice between FMOD and JOAL, and knowing what you know now as an experienced JOAL developer, which would you choose if you were me?
6) Are there any webstart examples I can try?

Thanks for your answers!

Offline tom
« Reply #1 - Posted 2005-04-15 13:51:05 »

I've not used JOAL, but I've used LWJGLs OpenAL in Squareheads. I'm answering on my limited knowledge of OpenAL.

1) No.
2) I think it is only available in the beta on windows. Have a look at this link at lwjgl.org: Ogg Vorbis Support?. There are a java decoder for ogg called jorbis. I've made a OggInputStream that makes it easy to stream ogg files using any api. I've made an example player in lwjgl OpenAL that can be used as a guide.
3) Very stable.
4) Yes. Creative is one of the developers I think.
5) Never used FMOD, but from what I've read FMOD is much better. But it is not free if your doing a comersial project. OpenAL is much more low level compared to FMOD.
6) Don't know about JOAL, but for a OpenAL check out Unreal Tournament Wink

Offline whome

Junior Member




Carte Noir Java


« Reply #2 - Posted 2005-05-13 08:08:17 »

http://koti.mbnet.fi/akini/openal/
If you need a JOAL example, here is a small test program to play wav files. Webpage has Delphi and Java test apps.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jaeden

Senior Newbie




There is no knowledge that is not power.


« Reply #3 - Posted 2005-07-28 23:33:29 »

5) Never used FMOD, but from what I've read FMOD is much better. But it is not free if your doing a comersial project. OpenAL is much more low level compared to FMOD.

I've used FMod. It's nothing real special. OpenAL is a whole lot free-er, and AFAIK FMod doesn't do 3d positional sound. I dabbled with FMod a little on a project but our sound guy ended up switching to OpenAL after working with FMod (and DirectSound), and hasnt' done sound in anything but OpenAL since.

Now, if we can just get somebody to make bindings for Khronos' OpenML...
Offline Orangy Tang

JGO Kernel


Medals: 51
Projects: 11


Monkey for a head


« Reply #4 - Posted 2005-07-29 00:16:48 »

There's one great thing about FMOD - it plays lots of formats with very little effort. I had a music mod file with samples up and running with very little work. If you want to do some more low-level sound tinkerings (like positional sound) then OpenAL might be a better option.

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline Jaeden

Senior Newbie




There is no knowledge that is not power.


« Reply #5 - Posted 2005-08-02 17:42:54 »

Tom, I downloaded your Ogg player and stuff, and love it. I'd like to use it in a game I'm working on where the sounds will primarily be ogg. However, we're using JOAL instead of LWJGL.

What are the chances I could ask you to give me a hand in making a JOAL version of OggPlayer.java? The input stream class is fine; it doesn't rely on OpenAL at all.
Offline tom
« Reply #6 - Posted 2005-08-02 21:25:11 »

What are the chances I could ask you to give me a hand in making a JOAL version of OggPlayer.java? The input stream class is fine; it doesn't rely on OpenAL at all.

Sorry, don't know any JOAL. Your best bet is to learn a little OpenAL by using the "OpenAL Lessons" (google for it), and take it from there.

Offline Jaeden

Senior Newbie




There is no knowledge that is not power.


« Reply #7 - Posted 2005-08-02 22:37:44 »

Hrmm.

Really, it seems like the biggest problem is the java.nio. buffers... LW uses them, JOAL uses straight int arrays (modeling the straight C syntax).

Maybe I can figure it out if I dig thru the buffer javadocs; who knows, there might be a toIntArray I coud use to convert the stuff prior to the call.

Would you mind me posting the class to the forum, in case somebody else would be able to help? Also, would you be interested in distributing a JOAL version of your player if I can generate one?
Offline tom
« Reply #8 - Posted 2005-08-03 03:10:58 »

Really, it seems like the biggest problem is the java.nio. buffers... LW uses them, JOAL uses straight int arrays (modeling the straight C syntax).
In my opinion buffers is closer to C style arrays than java arrays. You are actually dealing with the memory used by OpenAL. With java arrays you can't really be sure what is going on behind the scenes.

Would you mind me posting the class to the forum, in case somebody else would be able to help? Also, would you be interested in distributing a JOAL version of your player if I can generate one?
Do whatever you like. The code is yours and you can do what you like with it. I will not host a JOAL version.

Offline Jaeden

Senior Newbie




There is no knowledge that is not power.


« Reply #9 - Posted 2005-08-03 03:15:00 »

Fair 'nuff. Just trying to be helpful.

I think I have it ported over, anyhow.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline quintesse

Junior Member




Java games rock!


« Reply #10 - Posted 2005-11-20 13:58:55 »

Any chance of you hosting/posting this somewhere for others that might be interested?  Cheesy
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (73 views)
2014-04-15 18:08:23

BurntPizza (68 views)
2014-04-15 03:46:01

UprightPath (79 views)
2014-04-14 17:39:50

UprightPath (65 views)
2014-04-14 17:35:47

Porlus (80 views)
2014-04-14 15:48:38

tom_mai78101 (104 views)
2014-04-10 04:04:31

BurntPizza (164 views)
2014-04-08 23:06:04

tom_mai78101 (260 views)
2014-04-05 13:34:39

trollwarrior1 (210 views)
2014-04-04 12:06:45

CJLetsGame (220 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!