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
SoundStatus for Sound3D-Lib
- Bananenfreak
- Enthusiast
- Posts: 519
- Joined: Mon Apr 15, 2013 12:22 pm
- Bananenfreak
- Enthusiast
- Posts: 519
- Joined: Mon Apr 15, 2013 12:22 pm
Re: SoundStatus for Sound3D-Lib
Forum is moved, but found it: http://www.ogre3d.org/addonforums/viewf ... &start=150
- Bananenfreak
- Enthusiast
- Posts: 519
- Joined: Mon Apr 15, 2013 12:22 pm
Re: SoundStatus for Sound3D-Lib
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.
I´ve read on http://www.ogre3d.org/tikiwiki/tiki-ind ... undmanager, that sounds are freeed, if they are finished.
Is this true? So if we can´t get a SoundStaus3D(), a normal SetPosition() without any Node would be great!// 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.
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]