Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
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  
  Sound library-thing for noobs  (Read 2859 times)
0 Members and 1 Guest are viewing this topic.
Offline alexxz4

Junior Member


Projects: 1



« Posted 2008-02-17 02:29:13 »

Being a noob myself, I dislike the way java uses sounds; its way to complex especially for beginners. Normally, a novice game developer wants to know as much about the way sounds work as a sea turtle about life on Mars. So i made my own Sound library-thing that can play, loop and stop .ogg, .wav, .au, and .mid sounds without any brain busting. Example:
1  
2  
3  
4  
5  
6  
7  
Sound sound1=new Sound("theme.mid"), sound2=new Sound("explosion.ogg"),sound3=new Sound("shotgun.wav");
sound1.loop();
sound2.play();
sound3.play();
...
sound2.stop();
...

Here is the zip folder:
http://www.4shared.com/file/38050158/561452c1/soundbox.html
All you have to do is put all the contents next to your .class files and it should work. Also works if u use a jar. You dont have to import anything or use try-catch blocks. I apologize if i massacred conventions of using packages, classes, etc or if this is not exactly "shared code".

[ Motherload Unlimited looking for programmers ] [ Solitaire ]
Offline gouessej
« Reply #1 - Posted 2008-02-18 06:34:57 »

Where is the source code? I see only the .class files.     Huh Huh Huh
You use JOGG and JORBIS. Then you must give the source code.

Offline erikd

JGO Ninja


Medals: 16
Projects: 4
Exp: 14 years


Maximumisness


« Reply #2 - Posted 2008-02-21 14:47:09 »

Quote
You use JOGG and JORBIS. Then you must give the source code.

If I'm not mistaken, JOGG and JORBIS are LGPL, which doesn't require you to make your source code public if you use them.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline kevglass

JGO Kernel


Medals: 120
Projects: 23
Exp: 18 years


Coder, Trainee Pixel Artist, Game Reviewer


« Reply #3 - Posted 2008-02-21 15:30:42 »

Thats correct, from JOrbis readme

Quote
Copyrights & Disclaimers
========================

JOrbis is copyrighted by JCraft Inc. and is licensed through the
GNU Lesser General Public License.
Read the COPYING.LIB file for the complete license.

The COPYING.LIB includes a copy of LGPL. LGPL is a bit wishy washy for java, but this mostly clears it up for me:

http://www.gnu.org/licenses/lgpl-java.html

Kev

Offline gouessej
« Reply #4 - Posted 2008-02-21 22:08:15 »

Shared code??? I thought it was a place to share the source code! I'm fed up. You all agree with this way of doing. If he had modified the source code of JOGG and JORBIS, he must publish the source code in LGPL. He can keep the source code of his program for himself only if he didn't modify the source code of the libraries under LGPL he used.

I thought javagaming was a place to share knowledge and you encourage closed source coding practice, shame on you.

Offline Matzon

JGO Knight


Medals: 19
Projects: 1


I'm gonna wring your pants!


« Reply #5 - Posted 2008-02-21 23:14:07 »

who says he modified the LGPL code  Huh
if he links to LGPL then there is no issues. If he modified the code, then he has to share the code if he distributes something that uses it.

However, he should have shared the source - thats the entire purpose of the (sub) forum!

Offline cylab

JGO Ninja


Medals: 38



« Reply #6 - Posted 2008-02-22 00:57:04 »

Shared code??? I thought it was a place to share the source code! I'm fed up. You all agree with this way of doing. (...)

Come on, he says he is a noob. He probably just forget to post the source code... I agree with you, that posting in this section seems a bit pointless without source...

@alexxxz4
Care to provide the source?

I thought javagaming was a place to share knowledge and you encourage closed source coding practice, shame on you.

Tolerating is something different than encouraging. Everybody should decide for themselves, what to do with their (private) work.

Mathias - I Know What [you] Did Last Summer!
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.

Riven (12 views)
2014-07-29 18:09:19

Riven (8 views)
2014-07-29 18:08:52

Dwinin (9 views)
2014-07-29 10:59:34

E.R. Fleming (25 views)
2014-07-29 03:07:13

E.R. Fleming (10 views)
2014-07-29 03:06:25

pw (39 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (27 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!