Hi !
Featured games (85)
games approved by the League of Dukes
Games in Showcase (636)
Games in Android Showcase (178)
games submitted by our members
Games in WIP (687)
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

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

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

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

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:
(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

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
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
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.
12  Java Game APIs & Engines / Java Sound & OpenAL / getting started on: 2006-02-12 11:11:30
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.
der Diggi
13  Java Game APIs & Engines / Java Sound & OpenAL / Re: OpenAL on: 2005-11-25 03:27:16
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
does anyone has experience with 3D Audio in OpenAL and Java. Are there any good tutorials for that?
Pages: [1]
Dwinin (72 views)
2015-11-07 13:29:08

Rems19 (81 views)
2015-10-31 01:36:56

Rems19 (74 views)
2015-10-31 01:32:37

williamwoles (107 views)
2015-10-23 10:42:59

williamwoles (92 views)
2015-10-23 10:42:45

Jervac_ (106 views)
2015-10-18 23:29:12

DarkCart (135 views)
2015-10-16 00:58:11

KaiHH (116 views)
2015-10-11 14:10:14

KaiHH (156 views)
2015-10-11 13:26:18

BurntPizza (171 views)
2015-10-08 03:11:46
Rendering resources
by Roquen
2015-11-13 14:37:59

Rendering resources
by Roquen
2015-11-13 14:36:58

Math: Resources
by Roquen
2015-10-22 07:46:10

Networking Resources
by Roquen
2015-10-16 07:12:30

Rendering resources
by Roquen
2015-10-15 07:40:48

Math: Inequality properties
by Roquen
2015-10-01 13:30:46

Math: Inequality properties
by Roquen
2015-09-30 16:06:05

HotSpot Options
by Roquen
2015-08-29 11:33:11 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!