SoundStatus for Sound3D-Lib

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Bananenfreak
Enthusiast
Enthusiast
Posts: 519
Joined: Mon Apr 15, 2013 12:22 pm

SoundStatus for Sound3D-Lib

Post 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
Image
PMV
Enthusiast
Enthusiast
Posts: 727
Joined: Sat Feb 24, 2007 3:15 pm
Location: Germany

Re: SoundStatus for Sound3D-Lib

Post by PMV »

Inside of the ogre.log it just mentions "OgreAL":
http://www.ogre3d.org/tikiwiki/OgreAL

MFG PMV
User avatar
Bananenfreak
Enthusiast
Enthusiast
Posts: 519
Joined: Mon Apr 15, 2013 12:22 pm

Re: SoundStatus for Sound3D-Lib

Post by Bananenfreak »

Hmm, I don´t find any functionlist or so. Nearly all sites are down :(
Image
PMV
Enthusiast
Enthusiast
Posts: 727
Joined: Sat Feb 24, 2007 3:15 pm
Location: Germany

Re: SoundStatus for Sound3D-Lib

Post by PMV »

User avatar
Bananenfreak
Enthusiast
Enthusiast
Posts: 519
Joined: Mon Apr 15, 2013 12:22 pm

Re: SoundStatus for Sound3D-Lib

Post 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]
Image
Post Reply