Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6393


Ignore:
Timestamp:
Dec 21, 2009, 4:24:19 PM (14 years ago)
Author:
rgrieder
Message:

Removed two gcc warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/sound/WorldSound.cc

    r6388 r6393  
    7979        {
    8080            float refDist = this->getScene()->getSoundReferenceDistance();
    81             alSourcei(this->audioSource_, AL_REFERENCE_DISTANCE, refDist);
     81            alSourcef(this->audioSource_, AL_REFERENCE_DISTANCE, refDist);
    8282            // TODO: 500 is very magical here. Derive something better
    83             alSourcei(this->audioSource_, AL_MAX_DISTANCE, refDist * 500);
     83            alSourcef(this->audioSource_, AL_MAX_DISTANCE, refDist * 500);
    8484        }
    8585        this->tick(0); // update position, orientation and velocity
Note: See TracChangeset for help on using the changeset viewer.