Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / Java Sound & OpenAL / Hepl with OGG in JOAL on: 2010-07-21 08:29:16
I have read lessons in official joal portal, but in 8 lesson link to source classes doesn't work. Please give working code exaple with OGG loading and playing in JOAL. Thanks in advance!
2  Java Game APIs & Engines / Java Sound & OpenAL / Re: Problem with JOAL on: 2010-07-21 08:27:06
Problem is solved. The reason was in multithreading. Thread that inialize audio player not managed to load sound. And the thread in wich this player is using load more fast. The solution is to wait until player thread will be loaded.
3  Java Game APIs & Engines / Java Sound & OpenAL / Problem with JOAL on: 2010-07-19 20:29:01
I use Joal for sound in my game. It works good on my PC, but when i start game on other computers I always has bug with sound stopping. For example helper npc tell something in the begin of the level. And when player click, dialog breakes and appear some sound.
But on another computers, helper stop talking, but new sound doesnt play. I have tried various openAl drivers but problem still the same.
To play all sounds i used one source, and change buffer of this this source when need to play next sound.

public void play(SoundObject sound) {
  if (audioLoop != null) {
 
   audioLoop.stop();
   audioLoop.setBuffer(sound.getBuffer());
   audioLoop.play();

   }
In this code used wraped OpenAl function, but i have realised this code directly using Joal function too. But nothing have changed.
May be i use wrong approach?Is better to create separate source on each sound?May be better to play every sound in new Thread, and stop them?I don't understand why the same code works different on computers.Help me please. (Sorry, if I have some mistakes in my English)...
P.S If somebody used Java Media Framework tell me, its possible to use it in game without any installiation?
Pages: [1]
 

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (53 views)
2014-04-15 18:08:23

BurntPizza (51 views)
2014-04-15 03:46:01

UprightPath (65 views)
2014-04-14 17:39:50

UprightPath (48 views)
2014-04-14 17:35:47

Porlus (65 views)
2014-04-14 15:48:38

tom_mai78101 (89 views)
2014-04-10 04:04:31

BurntPizza (149 views)
2014-04-08 23:06:04

tom_mai78101 (245 views)
2014-04-05 13:34:39

trollwarrior1 (203 views)
2014-04-04 12:06:45

CJLetsGame (210 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!