Exemple #1
0
/** Set speed and position of a sound effect.
 *  \param f Speed.
 *  \param position Position of the sfx.
 */
void SFXOpenAL::reallySetSpeedPosition(float f, const Vec3 &position)
{
    reallySetSpeed(f);
    reallySetPosition(position);
}   // reallySetSpeedPosition
/** Set speed and position of a sound effect.
 *  \param f Speed.
 *  \param position Position of the sfx.
 */
void SFXOpenAL::reallySetSpeedPosition(float f, const Vec3 &position)
{
    if (m_status != SFX_PLAYING || !SFXManager::get()->sfxAllowed()) return;
    reallySetSpeed(f);
    reallySetPosition(position);
}   // reallySetSpeedPosition