Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (604)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (653)
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  
  Ideal Way to Use JavaSound for me?  (Read 3089 times)
0 Members and 1 Guest are viewing this topic.
Offline DarkMortar

Junior Devvie

Java Padawan

« Posted 2007-01-27 05:01:36 »

Ok, I want to know the best method, or libary or something pre-build into java that will best suit my requirements.

I would like to do the following with my sound effects/music:

1. Method to increase/decrease volume without screwing up wave volume on the computer.
2. Method to increase/decrease bass without messing up windows mesurments, to alter sounds.
3. Method to increase/decrease treble without messing up windows mesurments, to alter sounds.
4. Method to increase/decrease pitch.
5. Possibly some way to do possitioning effects, or at least play on certain speaker.

And also, what is better for the compressed audio. Mp3 or ogg or something else for java. Which can be altered the best, and also I would be willing to utilize higher quality conpressed formats. I would most likely save at 360kbps mp3 for the music and use wav for sound effects. The reason I want do adjust pitch, is to alter some effects and how they sound without making an entirely new sound file, and wasting space. I need to adjust volume so that effects and music volume sliders can be adjusted properly.

Thank you for your help!

Offline erikd

JGO Ninja

Medals: 16
Projects: 4
Exp: 14 years


« Reply #1 - Posted 2007-01-30 19:48:49 »

You might want to take a look at

As for compressed audio, I'd suggest ogg as it's free. What do you mean by 'which can be altered the best'? Any compressed audio file is decompressed at some point (either real time or ahead of time), so compression method has no influence over your ability to alter the sound.

Offline DarkMortar

Junior Devvie

Java Padawan

« Reply #2 - Posted 2007-02-01 06:25:57 »

When people say 'ogg is free' what do they mean? Because it seems to me like converting to mp3 is free, since i can. Im not selling my game so i dont need licenses or anything. So what sounds better at the same kbps the mp3 or the ogg? i like mp3 maybe more, just because the name is cooler lol.

but i notice that the java sound api doesnt have support for mp3 or ogg, so how do i make those compressed formats work along with java sound api modifications. i was taking a look at what it can do and it seems pretty good.

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

JGO Ninja

Medals: 16
Projects: 4
Exp: 14 years


« Reply #3 - Posted 2007-02-01 18:28:10 »

ogg is an open, free standard. I think mp3 has licensing restrictions but I'm not really aware of all the legal implications tbh. I just stick with ogg to be safe, and besides, it sounds at least as good if not better than mp3.

For using ogg in your java application, take a look at It's what I use too, it's easy to use and Just Works.You use the library to decompress the .ogg file, and you just stream the decompressed data using the JavaSound API.

Offline fletchergames

Senior Devvie

« Reply #4 - Posted 2007-02-01 19:41:00 »

I believe that with MP3 you can play back MP3 files for free.  But you have to pay some sort of royalty if your program creates MP3 files.  That's why Audacity can load MP3s but not save them.

I could be wrong though.  Support the open source community by using Ogg, which is roughly equivalent to MP3.
Offline DarkMortar

Junior Devvie

Java Padawan

« Reply #5 - Posted 2007-02-01 23:44:12 »

Ok, ill just ogg, thanks guys.

Offline darkprophet

Senior Devvie

Go Go Gadget Arms

« Reply #6 - Posted 2007-02-02 00:01:11 »

Breed (based on Unreal engine 2 i think) uses Oggs, and thats a fine game Smiley

I should know, I ripped some of em *L*

Friends don't let friends make MMORPGs.

Blog | Volatile-Engine
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

SHC (28 views)
2015-08-01 03:58:20

Jesse (19 views)
2015-07-29 04:35:27

Riven (40 views)
2015-07-27 16:38:00

Riven (21 views)
2015-07-27 15:35:20

Riven (24 views)
2015-07-27 12:26:13

Riven (14 views)
2015-07-27 12:23:39

BurntPizza (36 views)
2015-07-25 00:14:37

BurntPizza (46 views)
2015-07-24 22:06:39

BurntPizza (31 views)
2015-07-24 06:06:53

NoxInc (37 views)
2015-07-22 22:16:53
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 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‑
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!