Show Posts
|
|
Pages: [1]
|
|
1
|
Java Game APIs & Engines / Java Sound & OpenAL / Removing Sources and Buffers?
|
on: 2006-03-01 22: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
|
|
|
|
|
3
|
Java Game APIs & Engines / Java Sound & OpenAL / Moving Sounds
|
on: 2006-02-22 21: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 20: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 20: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 21: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
|
|
|
|
|
8
|
Java Game APIs & Engines / Java Sound & OpenAL / Re: getting started
|
on: 2006-02-18 22: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 22: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
|
|
|
|
|
11
|
Java Game APIs & Engines / Java Sound & OpenAL / Re: getting started
|
on: 2006-02-15 22: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 12: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 04: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?
|
|
|
|
|
|
Add your game by posting it in the WIP section,
or publish it in Showcase.
The first screenshot will be displayed as a thumbnail.
|
|