Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (407)
games submitted by our members
Games in WIP (293)
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 2464 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

JGO Ninja


Medals: 33
Projects: 1


TUER


« 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 Knight


Medals: 3
Projects: 3


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
« League of Dukes »

JGO Kernel


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« 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

JGO Ninja


Medals: 33
Projects: 1


TUER


« 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
« League of Dukes »

JGO Knight


Medals: 13
Projects: 2


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 Knight


Medals: 30



« 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.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Try the Free Demo of Revenge of the Titans

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (85 views)
2013-05-17 21:29:12

alaslipknot (93 views)
2013-05-16 21:24:48

gouessej (125 views)
2013-05-16 00:53:38

gouessej (118 views)
2013-05-16 00:17:58

theagentd (128 views)
2013-05-15 15:01:13

theagentd (115 views)
2013-05-15 15:00:54

StreetDoggy (159 views)
2013-05-14 15:56:26

kutucuk (181 views)
2013-05-12 17:10:36

kutucuk (181 views)
2013-05-12 15:36:09

UnluckyDevil (188 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.122 seconds with 20 queries.