Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (498)
Games in Android Showcase (115)
games submitted by our members
Games in WIP (562)
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  
  OpenAL in LWJGL/JOAL?  (Read 2997 times)
0 Members and 1 Guest are viewing this topic.
Offline Sickan

Senior Member


Medals: 9



« Posted 2012-07-30 10:49:28 »

I'd like to know a bit more about OpenAL in LWJGL and JOAL, what version/implementation you are using, where you get it from, if you build it from the source code. The reason for this is that I want to do some C/C++ development, and I'd like to use the sound API that I'm most familiar with; OpenAL. Creativelab's website hasn't been that helpful, either.
Thank you for your time.
Offline davedes
« Reply #1 - Posted 2012-07-30 13:17:12 »

Are you developing in C++ or Java? LWJGL or JOAL?

If your end goal is to use C++, then just go straight to it rather than using Java first. There are subtle differences programming in C++ vs Java; namely having to learn about pointers and how it changes various method parameters. For example, in Java/LWJGL we can write this without needing to worry about buffers or pointers:
1  
2  
3  
int src = alGenSources();
...
alSourcePlay(src);

(this "syntax sugar" is why I love LWJGL)

In C++ it looks like this:
1  
2  
3  
4  
ALuint source;
alGenSources(1, &source);
...
alSourcePlay(source);



If you're just using LWJGL, there is no building or anything required. Pick up the latest release of LWJGL and OpenAL will be included. From there, simply start following some of the tutorials to get started. (Note that the Wiki might be slightly out of date; it doesn't use the "syntax sugar" I explained above.)

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 77
Projects: 15


★★★★★


« Reply #2 - Posted 2012-07-30 13:22:01 »

also LWJGL uses and is bundled with OpenAL-Soft so can make use of many of the sound back-ends included with modern operating systems (doesn't need anything extra installed to use).
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gouessej
« Reply #3 - Posted 2012-07-30 14:49:10 »

I use JOAL with Paul Lamb Sound Library and I'm happy with them Cheesy

Offline Sickan

Senior Member


Medals: 9



« Reply #4 - Posted 2012-07-30 17:31:44 »

also LWJGL uses and is bundled with OpenAL-Soft so can make use of many of the sound back-ends included with modern operating systems (doesn't need anything extra installed to use).
This is what I was aiming for. Thank you.

Oh, and I have been writing small prototypes in LWJGL for quite some time now, and I think that I can handle the C++'ey stuff. Just, you know, widening the borders a bit. I'm sorry if I was a bit unclear in the question.
Offline gimbal

JGO Knight


Medals: 25



« Reply #5 - Posted 2012-08-01 11:27:54 »

Being someone that went from C/C++ game dev to Java game dev (all hobby of course), I can tell you it's actually a bit of a step back if you use C++. When doing game dev in C++ you're mostly dealing with micromanagement and doing stuff like plugging memory leaks. You'll likely not learn more about actual game dev itself, just dealing with the additional baggage from native coding. Java (or C#) provides you the same learning experience with less overhead from the language and platform itself, I suggest you stick with it.

Of course the fact that you don't need a Java runtime is nice, but especially when you dev on Windows platforms you'll have similar dependencies - Its far from install and play. I created a game using Visual Studio 2005 once, compiled and worked just fine on my machine of course. Then I gave it to a friend and all he got was "can't load DLL xxx, having a nice day". Turns out he didn't have the VS runtime redistributable installed. That was way back when, nowadays you can also have dependencies on a specific .NET runtime, XNA framework, ...
Offline davedes
« Reply #6 - Posted 2012-08-01 11:48:32 »

IMO learning C++ for OpenGL is only worth it if you want to get serious in the game or film industry.

Offline princec

JGO Kernel


Medals: 379
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #7 - Posted 2012-08-01 11:57:58 »

s/serious/employed.

I'm serious, just not employed Smiley

Cas Smiley

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.

BurntPizza (28 views)
2014-09-21 02:42:18

BurntPizza (18 views)
2014-09-21 01:30:30

moogie (19 views)
2014-09-21 00:26:15

UprightPath (27 views)
2014-09-20 20:14:06

BurntPizza (29 views)
2014-09-19 03:14:18

Dwinin (45 views)
2014-09-12 09:08:26

Norakomi (74 views)
2014-09-10 13:57:51

TehJavaDev (101 views)
2014-09-10 06:39:09

Tekkerue (50 views)
2014-09-09 02:24:56

mitcheeb (71 views)
2014-09-08 06:06:29
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!