|
virtual bool | play ()=0 |
| Plays the source with the last set parameters. More...
|
|
virtual bool | play2d (const bool &toLoop=false)=0 |
| Plays the source in 2D mode. More...
|
|
virtual bool | play3d (const PARAVECTOR3 &position, const float &soundstr=1.0, const bool &toLoop=false)=0 |
| Plays the source in 3D mode. More...
|
|
virtual void | pause ()=0 |
| Pauses playback of the sound source.
|
|
virtual void | stop ()=0 |
| Stops playback of the sound source.
|
|
virtual void | loop (const bool &toLoop)=0 |
| Controls whether the source should loop or not. More...
|
|
virtual bool | seek (const float &seconds, bool relative=false)=0 |
| Seeks through the audio stream to a specific spot. More...
|
|
virtual float | getTotalAudioTime ()=0 |
| Returns the total amount of time in the audio stream. See IAudioDecoder for details.
|
|
virtual int | getTotalAudioSize ()=0 |
| Returns the total decoded size of the audio stream. See IAudioDecoder for details.
|
|
virtual int | getCompressedAudioSize ()=0 |
| Returns the original size of the audio stream. See IAudioDecoder for details.
|
|
virtual float | getCurrentAudioTime ()=0 |
| Returns the current position in the audio stream in seconds. See IAudioDecoder for details.
|
|
virtual int | getCurrentAudioPosition ()=0 |
| Returns the current position in the decoded audio stream in bytes. See IAudioDecoder for details.
|
|
virtual int | getCurrentCompressedAudioPosition ()=0 |
| Returns the current position in the original audio stream in bytes. See IAudioDecoder for details.
|
|
virtual bool | update ()=0 |
| Normally called every frame by the audio manager to update the internal buffers. Note: For internal use only.
|
|
virtual void | release ()=0 |
| Releases all resources used by the audio source, normally used to clean up before deletion. Note: For internal use only.
|
|
virtual const bool | isValid () const =0 |
| Returns if the source is ready to be used.
|
|
virtual const bool | isPlaying () const =0 |
| Returns if the source is playing.
|
|
virtual const bool | isPaused () const =0 |
| Returns if the source is paused.
|
|
virtual const bool | isStopped () const =0 |
| Returns if the source is stopped.
|
|
virtual const bool | isLooping () const =0 |
| Returns if the source is looping.
|
|
virtual void | setPosition (const PARAVECTOR3 &position)=0 |
| Sets the position of the source in 3D space. More...
|
|
virtual void | setVelocity (const PARAVECTOR3 &velocity)=0 |
| Sets the current velocity of the source for doppler effects. More...
|
|
virtual void | setDirection (const PARAVECTOR3 &direction)=0 |
| Sets the direction the source is facing. More...
|
|
virtual void | setRolloffFactor (const float &rolloff)=0 |
| Sets the factor used in attenuating the source over distance. More...
|
|
virtual void | setStrength (const float &soundstrength)=0 |
| Sets how well the source carries over distance. More...
|
|
virtual void | setMinDistance (const float &minDistance)=0 |
| Sets the distance from the source where attenuation will begin. More...
|
|
virtual void | setMaxDistance (const float &maxDistance)=0 |
| Sets the distance from the source where attenuation will stop. More...
|
|
virtual void | setPitch (const float &pitch)=0 |
| Sets the pitch of the source. More...
|
|
virtual void | setVolume (const float &volume)=0 |
| Sets the source volume before attenuation and other effects. More...
|
|
virtual void | setMinVolume (const float &minVolume)=0 |
| Sets the minimum volume that the source can be attenuated to. More...
|
|
virtual void | setMaxVolume (const float &maxVolume)=0 |
| Sets the maximum volume that the source can achieve. More...
|
|
virtual void | setInnerConeAngle (const float &innerAngle)=0 |
| Sets the angle of the inner sound cone of the source. The cone opens up in the direction of the source as set by setDirection(). More...
|
|
virtual void | setOuterConeAngle (const float &outerAngle)=0 |
| Sets the angle of the outer sound cone of the source. The cone opens up in the direction of the source as set by setDirection(). More...
|
|
virtual void | setOuterConeVolume (const float &outerVolume)=0 |
| Sets how much the volume of the source is scaled in the outer cone. More...
|
|
virtual void | setDopplerStrength (const float &dstrength)=0 |
| Sets the doppler strength, which enhances or diminishes the doppler effect. Can be used to exaggerate the doppler for a special effect. More...
|
|
virtual void | setDopplerVelocity (const PARAVECTOR3 &dvelocity)=0 |
| Overrides the doppler velocity vector. It is usually better to let the engine take care of it automatically. More...
|
|
virtual void | move (const PARAVECTOR3 &position)=0 |
| Convenience function to automatically set the velocity and position for you in a single call. More...
|
|
virtual const PARAVECTOR3 | getPosition () const =0 |
| Returns the audio objects position.
|
|
virtual const PARAVECTOR3 | getVelocity () const =0 |
| Returns the audio objects velocity.
|
|
virtual const PARAVECTOR3 | getDirection () const =0 |
| Returns the audio objects direction.
|
|
virtual const float | getRolloffFactor () const =0 |
| Returns the factor used in attenuating the source over distance.
|
|
virtual const float | getStrength () const =0 |
| Returns the strength of the source.
|
|
virtual const float | getMinDistance () const =0 |
| Returns the distance from the source where attenuation will begin.
|
|
virtual const float | getMaxDistance () const =0 |
| Returns the distance from the source where attenuation will stop.
|
|
virtual const float | getPitch () const =0 |
| Returns the pitch of the source.
|
|
virtual const float | getVolume () const =0 |
| Returns the source volume before attenuation and other effects.
|
|
virtual const float | getMinVolume () const =0 |
| Returns the minimum volume that the source can be attenuated to.
|
|
virtual const float | getMaxVolume () const =0 |
| Returns the maximum volume that the source can achieve.
|
|
virtual const float | getInnerConeAngle () const =0 |
| Returns the angle of the inner sound cone of the source.
|
|
virtual const float | getOuterConeAngle () const =0 |
| Returns the angle of the outer sound cone of the source.
|
|
virtual const float | getOuterConeVolume () const =0 |
| Returns how much the volume of the source is scaled in the outer cone.
|
|
virtual const float | getDopplerStrength () const =0 |
| Returns the doppler strength, which enhances or diminishes the doppler effect.
|
|
virtual const PARAVECTOR3 | getDopplerVelocity () const =0 |
| Returns the override for the doppler velocity vector.
|
|
virtual void | registerEventHandler (IAudioSourceEventHandler *handler)=0 |
| Registers a new event handler to this source. More...
|
|
virtual void | unRegisterAllEventHandlers ()=0 |
| Removes all event handlers attached to this source.
|
|