Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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 / Removing Sources and Buffers? on: 2006-03-01 21:23:10
Hi,

my program uses a couple of wav files. When one is played, is supposed to be removed and a new one is supposed to be loaded a few seconds later.

My problem is, that I don't know how I can remove a file from the openal context.

I found the methods deleteSource and deleteBuffer, but I couldn't figure I out, if I can use them and if how.

Thanks for Help

Diggi
2  Java Game APIs & Engines / Java Sound & OpenAL / Re: Moving Sounds on: 2006-02-23 21:21:19
good idea^^ - it works now
3  Java Game APIs & Engines / Java Sound & OpenAL / Moving Sounds on: 2006-02-22 20:31:16
Hi,
the title is saying everything. How can I change the position of a sound while it is playing. I couldn't find any tutorials or demos.

That isn't working out so well :


static class N extends Thread {

    public void run() {
        sourcePos[0] = (float) (4 * Math.random() - 2);
        sourcePos[1] = (float) (4 * Math.random() - 2);
        sourcePos[2] = (float) (4 * Math.random() - 2);
        al.alSourcefv(source[0], AL.AL_POSITION, sourcePos, 0);

        try { sleep(500); } catch (InterruptedException e) { }
    }

}

(modified version of lesson1 - SingleStaticSource

thanks
Diggi
4  Java Game APIs & Engines / Java Sound & OpenAL / Re: 3D Sound on: 2006-02-20 19:47:42
I'm sorry, I did a mistake. I set a very large distance between the listener and the source, so it was not quiet to hear anything. I decreased the distance and now it is working perfect. thanks for the help
diggi
5  Java Game APIs & Engines / Java Sound & OpenAL / Re: 3D Sound on: 2006-02-20 19:30:55
Select a test from the following options

1 Position Test
2 Looping Test



Yes it is this one. When you have a 5.1 speaker system and soundcard and you chose -1- you will hear a short sound from the left rear speaker. You can add in a sound from the right front speaker.
This is actually my only question: How can I make a sound to come from any position in the room I choose. And I want to use a 5.1 Soundsystem. The Sound and Listener positions didn't work out with stereofiles and monofiles did not work at all.
6  Java Game APIs & Engines / Java Sound & OpenAL / 3D Sound on: 2006-02-19 20:53:19
Finally I brought Joal to work (thanks Ken Russell).
I downloaded "lesson1" from devmaster. This demo plays a stereo file through the two front speakers. I changed the source - and listener position, but it is still only coming from the frontspeakers. (I got a 5.1 Soundcard from C-Media; The console demo, that comes with the openal sdk works properly with all 5 speakers)
When I took a mono file instead of a stereo file, I didn't hear anything at all.

So what do I have to do to play a mono file from any direction I want. Are there any sample codes, tutorials or demos out there? Where?

By the way: Is it possible to change the position of the speakers?

Diggi
7  Java Game APIs & Engines / Java Sound & OpenAL / Re: getting started on: 2006-02-18 21:53:37
OK, ok, never mind. I reinstalled the sdk and no it is working.
So I think we can close this thread now.
Thanks again
8  Java Game APIs & Engines / Java Sound & OpenAL / Re: getting started on: 2006-02-18 21:43:12
I tiped in what you told me to. When I hit the return button, it seems as it was doing nothing. But when I changed the name of the jar and the dll. It supported an exception in main thread. So it musst have been executed, but I couldn't see anything on the screen rather hear anything.
I think there musst be any generel openal settings, that need to be set. I only installed the openal sdk 1.1 and did nothing else with it. What do I have to do to make it work??

Thanks a lot for the help
9  Java Game APIs & Engines / Java Sound & OpenAL / Re: getting started on: 2006-02-17 21:06:59
Ok, thanks first,
I'm using windows xp. I got the following files:
joal.jar
joal_native.dll
SingleStaticSource.class
(All these files came from the lesson1 tutorial).
What do I have to write in the command line to execute the .class file properly?
Do I need additional files to run the file?
I installed the openal sdk 1.1. Do I have to do some settings for that? Lesson1 was supposed to run with 1.0. Is it working on 1.1 as well?
Thank you very much for taking the time
Diggi

ps: I was trying a couple of things, but I couldn't make it work
10  Java Game APIs & Engines / Java Sound & OpenAL / Re: getting started on: 2006-02-16 21:43:45
Ok,
sure I can not expect everyone to work with JBuilder. But it would be good to know that stuff in generel. Are there any instructions for other Java Editors?
11  Java Game APIs & Engines / Java Sound & OpenAL / Re: getting started on: 2006-02-15 21:42:03
Hi,
I'm pretty serious about that.
Does anyone know where I can find instructions to set up joal and openal.
Actually everyone of you know how to do that. Why can't you give me an answer. I would really apriciate it.
Diggi
12  Java Game APIs & Engines / Java Sound & OpenAL / getting started on: 2006-02-12 11:11:30
Hi,
I'm new in OpenAL. I have installed the OpenAL SDK 1.1. The Demos are working properly,
but I do not know how to set the paths for OpenAL and Joal, that JBuilder can find them.
What do I have to do to make it working.
Thanks
der Diggi
13  Java Game APIs & Engines / Java Sound & OpenAL / Re: OpenAL on: 2005-11-25 03:27:16
Ok,
thanks for this information.
I have another question. A normal 5.1 setup has in every corner a loudspeaker and one in the center. If I place the center speaker on top of the room, could I change the configuration of openal/eax/joal so, that the position of the speaker is on the top of the room now and not in the center any more?
14  Java Game APIs & Engines / Java Sound & OpenAL / Re: OpenAL on: 2005-11-24 18:35:14
Thanks for that. I googled a bit and found some information about EAX. Is that a good soulution?
15  Java Game APIs & Engines / Java Sound & OpenAL / OpenAL on: 2005-11-24 01:07:55
Hi,
does anyone has experience with 3D Audio in OpenAL and Java. Are there any good tutorials for that?
thanks
Diggi
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.

Longarmx (37 views)
2014-10-17 03:59:02

Norakomi (28 views)
2014-10-16 15:22:06

Norakomi (24 views)
2014-10-16 15:20:20

lcass (27 views)
2014-10-15 16:18:58

TehJavaDev (52 views)
2014-10-14 00:39:48

TehJavaDev (54 views)
2014-10-14 00:35:47

TehJavaDev (42 views)
2014-10-14 00:32:37

BurntPizza (63 views)
2014-10-11 23:24:42

BurntPizza (36 views)
2014-10-11 23:10:45

BurntPizza (77 views)
2014-10-11 22:30:10
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

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