Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
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 2911 times)
0 Members and 1 Guest are viewing this topic.
Offline DarkMortar

Junior Member




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


Maximumisness


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

You might want to take a look at http://java.sun.com/docs/books/tutorial/sound/controls.html

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 Member




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


Maximumisness


« 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 http://www.jcraft.com/jorbis/. 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 Member





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




Java Padawan


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

Ok, ill just ogg, thanks guys.

Offline darkprophet

Senior Member




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.

 

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

The first screenshot will be displayed as a thumbnail.

TehJavaDev (15 views)
2014-08-29 01:26:30

CopyableCougar4 (25 views)
2014-08-23 02:31:30

atombrot (38 views)
2014-08-19 16:29:53

Tekkerue (33 views)
2014-08-16 13:45:27

Tekkerue (32 views)
2014-08-16 13:22:17

Tekkerue (20 views)
2014-08-16 13:20:21

Tekkerue (29 views)
2014-08-16 13:12:11

Rayexar (66 views)
2014-08-11 09:49:23

BurntPizza (42 views)
2014-08-10 04:09:32

BurntPizza (34 views)
2014-08-08 09:01:56
List of Learning Resources
by Longor1996
2014-08-16 17:40:00

List of Learning Resources
by SilverTiger
2014-08-06 02:33:27

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

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

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

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

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

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