Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (603)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (650)
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  
  What library best to use for handling multiple soundeffect + background music  (Read 10318 times)
0 Members and 1 Guest are viewing this topic.
Offline Norakomi
« Posted 2014-04-23 11:57:10 »


I'm almost a complete noob an I see there a a couple of libraries for playing sound out there. I've tried some an they didnt always work that great (sound gets jittery or in playback pieces of music gets skipped).

I am creating a game that need to run backgroundmusic + multiple sound effects in game and needs to switch background music a couple of times in game and between switching screens.

What would your recommendation be for playing back sound&music.

What works best, can play different fileformats & what other stuff do i need to keep in mind in choosing what library to use??
Also i get problems with music not running smoothly at an equal speed but speeding up occasionally...

So far i looked into TinySound, but it wont playback .mp3 and when i switched to .ogg sound gets jittery and is skipping parts (but that might have to do more with my noobish programming skills)

I also used LibGDX's sound & music classes. This one runs .mp3 but same thing with sound getting jittery and not playing back fluent all the time

Any help would be much appreciated.

Offline Gibbo3771
« Reply #1 - Posted 2014-04-23 14:30:43 »

All those libraries...even the most popular that is LibGDX....still having problems...

Maybe, just maybe it is not libraries that are the issue but instead your computer.

There is no way in hell all those libraries are failing for you.

"This code works flawlessly first time and exactly how I wanted it"
Said no programmer ever
Offline Norakomi
« Reply #2 - Posted 2014-04-23 14:41:13 »

Well that could be a problem. I'm currently working on my brothers old laptop (AMD 64 athlon x2). But i also remember from a while ago when working on my own Intel i5 8GB >3Mhz that i had troubles with some of my files being played back  distorted.

But how are those guys of you that are able to run backgroundmusic + mutiple sound effects at the same time able to do it?

Should I just stick with LibGDX's classes?

Or any other recommendations?

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Gibbo3771
« Reply #3 - Posted 2014-04-23 14:46:53 »

Should I just stick with LibGDX's classes?

Yes, what to do is, setup your code with what you want to happen. Compile it and post a link here, I will check if it is distorted for me.

If so, then there might be something wrong with whatever it is your using to create the sounds, or something is going all screwed up when compiling.

"This code works flawlessly first time and exactly how I wanted it"
Said no programmer ever
Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

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

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

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

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

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

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

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

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

NoxInc (31 views)
2015-07-22 22:16:53

NoxInc (20 views)
2015-07-22 22:13:39
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!