POV-Ray : Newsgroups : povray.general : POV-Ray 3D Sound System : Re: POV-Ray 3D Sound System Server Time
2 Jun 2024 19:18:07 EDT (-0400)
  Re: POV-Ray 3D Sound System  
From: Tim Nikias
Date: 17 Sep 2004 13:36:29
Message: <414b209d$1@news.povray.org>
> //               name    sound_filename    time
> sound_point_loop("ball","wavdata/bump.wav",1000*3.5)
> This should play the sound after 3.5 seconds. Now, how should this
> information be put into the data text file? My sound system include file
is
> invoked in every frame of the animation, but naturally it should not save
> the information "play bump.wav after 3500 milliseconds" every time it is
> invoked (which is in every frame).
SNIP

But the JAVA programm is called after the animation, right? As I understand
it, the pov-source parses and creates a data-file, which the JAVA-app loads
and runs through OpenAL to retrieve a nifty stereo-sound. If that is so,
shouldn't it be easy to just create a macro which, when activated, will
return some data to the data-file? A modified version of the macro above
(perhaps sound_point_once()) would then, add the wave to the data once it is
called. In the ball-hopping example, the macro would only be called directly
after/when it hits a surface. The physics-system would supply the data
needed to pinpoint the moment for the sound to start and call the macro with
that information. It won't get called when there's no hit. Is that a
possibility?

> Yeah. Only, it still requires that you have both Java Virtual Machine and
> OpenAL installed - I think.
Well, that's much like the requirement to install POV-Ray before making use
of the sources, right? Is it bothersome to install OpenAL? A small
readme.txt with guidelines tagged with your app would be all it takes then.

> I don't think it's off-topic, at least not major parts of the discussion.
> And it would be impractical if the things we discuss are lost in a few
weeks
> time. For now I think we can just keep the discussion here.

Well, not off-topic, but if we're rambling some thoughts, we'd use quiet
some space... We'll see. I guess we'll just get banned once we get
off-topic. ;-)

Regards,
Tim

-- 
"Tim Nikias v2.0"
Homepage: <http://www.nolights.de>


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.