|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Rune <run### [at] runevisioncom> wrote:
> delete sources so that they're only used when needed. However, when I try to
> dynamically do that, Java crashes...
If it is really java itself that crashes, then this is a bug in java, not
necessarily in the application.
Have you tried upgrading to a newer version of java?
Lutz-Peter
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> In one of my tests I'm using neither arrays nor lists, just two variables
to
> store the ID's for the two sources. Well, each source requires an integer
> array as one of the parameters, but I use one 1-element array for each of
> the two sources. These arrays can't be replaced with linked lists, since
> it's something internal in JOAL that I have no control over.
Hm. Would it be possible to delete the sources and then just recreate the
ones you still need? Or does that result in an audible sound-effect?
I'm not sure how OpenAL etc works, so just a question: if the source is
created, is it still possible to just mute it? Maybe you could bypass the
entire problem by simply letting the User define "tracks", and your
application won't output a single sound-file, but rather several ones: one
per track. Might be useful for mixing/post-processing purposes anyway, so it
wouldn't be a waste even if there is a better solution than working around
it.
--
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Lutz-Peter Hooge wrote:
> Rune <run### [at] runevisioncom> wrote:
>
>> delete sources so that they're only used when needed.
>> However, when I try to dynamically do that, Java crashes...
>
> If it is really java itself that crashes
It is...
> then this is a bug in java, not necessarily in the application.
> Have you tried upgrading to a newer version of java?
I have 1.4.2_05, which appears to be the newest version.
I'm currently trying out the competing Java binding for OpenAL that is
included with LWJGL (Light-Weight Java Game Library) and it doesn't make
Java crash where JOAL does, but it does make Java crash on some other
occasions. Besides that, the two implementations give rather different
results for the same input. I'm getting seriously confused and annoyed by
the whole thing... :(
Rune
--
3D images and anims, include files, tutorials and more:
rune|vision: http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Tim Nikias wrote:
> Hm. Would it be possible to delete the sources and then just recreate
> the ones you still need? Or does that result in an audible
> sound-effect?
I'm pretty sure it would, besides being a nigtmare to program.
> I'm not sure how OpenAL etc works, so just a question: if the source
> is created, is it still possible to just mute it?
Yes. But the problem is the limited amount of sources.
> Maybe you could bypass the entire problem by simply letting the User
define "tracks",
> and your application won't output a single sound-file, but rather
> several ones: one per track. Might be useful for
> mixing/post-processing purposes anyway, so it wouldn't be a waste
> even if there is a better solution than working around it.
I don't like it very much, but it may be a last resort...
Rune
--
3D images and anims, include files, tutorials and more:
rune|vision: http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Rune <run### [at] runevisioncom> wrote:
> I have 1.4.2_05, which appears to be the newest version.
Ok. There is also java 1.5, but its still a release candidate.
> I'm currently trying out the competing Java binding for OpenAL that is
> included with LWJGL (Light-Weight Java Game Library)
Oh, so I assume OpenAL is not native java, but rather some library written
in C++ or something? Then maybe I was wrong and it could crash java without
an actual bug in java itself.
Lutz-Peter
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Lutz-Peter Hooge wrote:
> Oh, so I assume OpenAL is not native java, but rather some library
> written in C++ or something? Then maybe I was wrong and it could
> crash java without an actual bug in java itself.
Yes indeed, that's the case. This is the error message:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at
PC=0x2CD9D94
Function=alDistanceModel+0x1814
Library=D:\WINDOWS\System32\OpenAL32.dll
Rune
--
3D images and anims, include files, tutorials and more:
rune|vision: http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Could you render each sound independently, then mix the tracks down after
everything's done?
--
KC6ETE Dave's Engineering Page, www.dvanhorn.org
Microcontroller Consultant, specializing in Atmel AVR
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Dave VanHorn wrote:
> Could you render each sound independently, then mix
> the tracks down after everything's done?
I don't like that option. If you have a 30 seconds animation with 20 sounds,
it'll take 10 minutes just to generate the sound. This is because the sound
rendering engine works in real-time, so it it has to render each sound
seperately, which means one sound after the other (as well as all the
silence before and after the sound, in order to get the timing right).
However, right now I'm looking at another Java implementation of OpenAL
implemented in LWJGL ( http://www.lwjgl.org ) which doesn't have the
multiple-sound problem. I'm having some different problems with it though...
Rune
--
3D images and anims, include files, tutorials and more:
rune|vision: http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
in news:41588eec@news.povray.org Rune wrote:
> I'm having some different problems with it though...
>
>
Can't help with your problems, but maybe this is an alternative sound
system:
http://www.muse.demon.co.uk/vspace/vspace.html
You won't need Java as it uses its own, a bit SDL like, scripting
language.
Ingo
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
ingo wrote:
> Can't help with your problems, but maybe this is an alternative sound
> system:
>
> http://www.muse.demon.co.uk/vspace/vspace.html
>
> You won't need Java as it uses its own, a bit SDL like, scripting
> language.
Thanks for pointing me to this. It looks interesting, but as far as I can
see, it doesn't have support for looping sounds, nor for setting the pitch
of a sound. Those two things I find rather important... I think I'll stick
with OpenAL. I just need some time getting it to work properly...
Rune
--
3D images and anims, include files, tutorials and more:
rune|vision: http://runevision.com
POV-Ray Ring: http://webring.povray.co.uk
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |