iSndSysSource3DDoppler Struct Reference
Public Member Functions
|virtual const csVector3 &||GetVelocity ()=0|
|Get velocity (speed) of the source. |
|virtual void||SetVelocity (const csVector3 &Velocity)=0|
|Set velocity (speed) of the source. |
Extension to the iSndSysSource3D interface, allowing Doppler shift effects.
The Doppler effect that causes sound sources the change in pitch as their relative velocities change. As an example the siren of an ambulance will increase in pitch as it approaches you, and decrease once it has passed you.
The pitch of a source is multiplied by the value doppler_factor * (speed_of_sound - listener_velocity) / (speed_of_sound + source_velocity) Where the two velocities are the projections of the source and listener velocities, onto the vector between them.
Member Function Documentation
|virtual const csVector3& iSndSysSource3DDoppler::GetVelocity||(||)||
Get velocity (speed) of the source.
|virtual void iSndSysSource3DDoppler::SetVelocity||(||const csVector3 &||Velocity||)||
Set velocity (speed) of the source.
The documentation for this struct was generated from the following file:
Generated for Crystal Space 2.0 by doxygen 1.6.1