Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (538)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (601)
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 8710 times)
0 Members and 1 Guest are viewing this topic.
Offline Norakomi
« Posted 2014-04-23 11:57:10 »

Hi,

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

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

Norakomi Retro Games Projects at: http://norakomi.blogspot.nl/
Norakomi on Google Play
Online 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?

Norakomi Retro Games Projects at: http://norakomi.blogspot.nl/
Norakomi on Google Play
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online 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.

 

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

The first screenshot will be displayed as a thumbnail.

rwatson462 (29 views)
2014-12-15 09:26:44

Mr.CodeIt (20 views)
2014-12-14 19:50:38

BurntPizza (42 views)
2014-12-09 22:41:13

BurntPizza (76 views)
2014-12-08 04:46:31

JscottyBieshaar (37 views)
2014-12-05 12:39:02

SHC (50 views)
2014-12-03 16:27:13

CopyableCougar4 (47 views)
2014-11-29 21:32:03

toopeicgaming1999 (114 views)
2014-11-26 15:22:04

toopeicgaming1999 (102 views)
2014-11-26 15:20:36

toopeicgaming1999 (30 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

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

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

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
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!