Page 1 of 1

SoundStatus for Sound3D-Lib

Posted: Fri May 09, 2014 7:15 am
by Bananenfreak
Heyho,

I wanted to implement Sound 3D to my Project, but what I miss is a function. What if something collides with another object? You want to Play a sound once(!). But then you´ll have tons of sounds and nodes in your program.
There could be another possibility: Destroy sound after 5sec or so, but this isn´t really comfortable to program.

So it would be much easier to handle sounds if there is an possibility to get informations about my Sound3D.

P.S.: What lib PB uses for 3D-Sound? It would be great if that will be documented in the doc...

Greets,

Bananenfreak

Re: SoundStatus for Sound3D-Lib

Posted: Fri May 09, 2014 12:31 pm
by PMV
Inside of the ogre.log it just mentions "OgreAL":
http://www.ogre3d.org/tikiwiki/OgreAL

MFG PMV

Re: SoundStatus for Sound3D-Lib

Posted: Sat May 10, 2014 10:09 am
by Bananenfreak
Hmm, I don´t find any functionlist or so. Nearly all sites are down :(

Re: SoundStatus for Sound3D-Lib

Posted: Sat May 10, 2014 1:42 pm
by PMV

Re: SoundStatus for Sound3D-Lib

Posted: Tue Jun 03, 2014 4:49 pm
by Bananenfreak
I´m not sure, but I think this isn´t possible.

I´ve read on http://www.ogre3d.org/tikiwiki/tiki-ind ... undmanager, that sounds are freeed, if they are finished.
// Release an audio source when we are done with it.
// This isn't required if you destruct the AudioEngine - as it cleans itself up.
// But, you *SHOULD* do this when, for example, your SceneObject is no longer
// in the scene for some reason. In other words, if you don't need this source
// anymore then free up the resource. Remember, you are limited in audio sources.
Is this true? So if we can´t get a SoundStaus3D(), a normal SetPosition() without any Node would be great!

Code: Select all

bool setSoundPosition( unsigned int audioID, Vector3 position );
 
        bool setSoundPosition( unsigned int audioID, Vector3 position,
            Vector3 velocity, Vector3 direction );
 
        bool setSound( unsigned int audioID, Vector3 position,
            Vector3 velocity, Vector3 direction, float maxDistance,
            bool playNow, bool forceRestart, float minGain );
 
        bool setListenerPosition( Vector3 position, Vector3 velocity,
            Quaternion orientation );code]