Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (489)
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   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / Java Sound & OpenAL / Re: 3D Sound Engine on: 2011-02-25 23:38:44
I have fixed my problem.  I was using 'sounds/' as my package instead of 'Sounds/'.  Since Windows isn't file system case specific it didn't have any problem finding my sounds while since Linux is file system case specific it failed to find my sounds.  Easily fixed.  Thanks.
2  Java Game APIs & Engines / Java Sound & OpenAL / Re: 3D Sound Engine on: 2011-02-23 14:52:07
Thank you!  I appreciate the help  Smiley.  I'm not able to work on this until the weekend but I'll try swapping out Jorbis for Jogg codecs to see if that makes a difference when I get home from being away with work.
3  Java Game APIs & Engines / Java Sound & OpenAL / Re: 3D Sound Engine on: 2011-02-20 00:26:20
Hi Paul, I have a quick question.  How well tested is the SoundSystem on Linux (Ubunbu in my case)?  I'm trying to test it in Ubuntu and I get a problem with the JOrbis codec initialisation (CodecJOrbis).   Would you have any ideas on this issue?  Everything works great in Windows.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
Starting up SoundSystem...
Initializing LWJGL OpenAL
    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
OpenAL initialized.

Exception in thread "Thread-3" java.lang.NullPointerException
   at paulscode.sound.codecs.CodecJOrbis.initialize(CodecJOrbis.java:259)
   at paulscode.sound.libraries.SourceLWJGLOpenAL.play(SourceLWJGLOpenAL.java:616)
   at paulscode.sound.Library.play(Library.java:706)
   at paulscode.sound.Library.play(Library.java:675)
   at paulscode.sound.SoundSystem.CommandPlay(SoundSystem.java:2076)
   at paulscode.sound.SoundSystem.CommandQueue(SoundSystem.java:2599)
   at paulscode.sound.CommandThread.run(CommandThread.java:121)
4  Java Game APIs & Engines / Java Sound & OpenAL / Re: 3D Sound Engine on: 2011-01-08 15:37:03
Interesting.  I was using SoundSystemJPCT while you use SoundSystem. I took the version of the files you use, switch to using SoundSystem and now it plays my small .ogg files.  I wonder if this means there is a bug with SoundSystemJPCT?

All the same thank you very much for your help gouessej!  I can use fades with SoundSystem so I think I'll stick to just that.  I get the jittery sound bug using Java Sound so I think I'll continue using OpenAL.  
5  Java Game APIs & Engines / Java Sound & OpenAL / Re: 3D Sound Engine on: 2011-01-07 15:09:42
Thanks for the info.  It doesn't work for me even when I don't use streaming.  What file size is the smallest ogg file you use?
6  Java Game APIs & Engines / Java Sound & OpenAL / Re: 3D Sound Engine on: 2011-01-06 23:00:17
Thanks for a reply.  I am using the versions from the first post.  I'm using the assumption that these are the newest (as a lot of people tend to re-edit their first post with the links).  I've tried it with both newSource(...) and newStreamingSource(...) methods.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
      
boolean priority = false;
String sourcename = "Source 1";
String filename = "/sound/badge.ogg";    // this is stored in a package Sounds.sound and other files work fine like this.
boolean loop = false;
float x = 0;
float y = 0;
float z = 0;
int aModel = SoundSystemConfig.ATTENUATION_ROLLOFF;
float rFactor = SoundSystemConfig.getDefaultRolloff();

soundSystem.newStreamingSource( priority, sourcename, filename, loop, x, y, z, aModel, rFactor );
soundSystem.play( "Source 1" );


EDIT: I ultimately want to use fades and I noticed you can only use fades with SteamingSources so says the console info
7  Java Game APIs & Engines / Java Sound & OpenAL / Re: 3D Sound Engine on: 2011-01-06 15:41:17
Firstly I'd like to say I think this sound system is great Smiley.

Secondary I've encountered an issue with playing .ogg files that are of a small size (for instance 13kb).  I can play it in another media player (Winamp for example) but not using the sound system.  When I change the file to a larger sized .ogg (a track of size 500kb) it works fine.  Is there a lower size limit for use of .ogg?

I encounter this issue using LibraryLWJGLOpenAL.class and LibraryJavaSound.class whilst I have also tried CodecJOrbis.class and CodecJOgg.  Any ideas?

EDIT:  It also works with .ogg of file size 184kb.  So I guess there may be a lower size limit?
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.

TehJavaDev (18 views)
2014-08-28 18:26:30

CopyableCougar4 (26 views)
2014-08-22 19:31:30

atombrot (39 views)
2014-08-19 09:29:53

Tekkerue (36 views)
2014-08-16 06:45:27

Tekkerue (33 views)
2014-08-16 06:22:17

Tekkerue (22 views)
2014-08-16 06:20:21

Tekkerue (33 views)
2014-08-16 06:12:11

Rayexar (70 views)
2014-08-11 02:49:23

BurntPizza (47 views)
2014-08-09 21:09:32

BurntPizza (38 views)
2014-08-08 02:01:56
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

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

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

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