Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 7, 2009, 11:19:19 AM (16 years ago)
Author:
rgrieder
Message:

Renaming BaseSound::setSoundFile (and all its associates) to setSource to be compliant with classes like ParicleInterface.

File:
1 edited

Legend:

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

    r5897 r5899  
    5252    {
    5353        SUPER(WorldSound, XMLPort, xmlelement, mode);
    54         XMLPortParamExtern(WorldSound, BaseSound, this, "soundFile", setSoundFile, getSoundFile, xmlelement, mode);
     54        XMLPortParamExtern(WorldSound, BaseSound, this, "source", setSource, getSource, xmlelement, mode);
    5555        XMLPortParamExtern(WorldSound, BaseSound, this, "loop", setLoop, getLoop, xmlelement, mode);
    5656        XMLPortParamExtern(WorldSound, BaseSound, this, "playOnLoad", setPlayOnLoad, getPlayOnLoad, xmlelement, mode);
     
    6565    void WorldSound::tick(float dt)
    6666    {
    67         if (alIsSource(this->source_))
     67        if (alIsSource(this->audioSource_))
    6868        {
    6969            const Vector3& pos = this->getWorldPosition();
    70             alSource3f(this->source_, AL_POSITION, pos.x, pos.y, pos.z);
     70            alSource3f(this->audioSource_, AL_POSITION, pos.x, pos.y, pos.z);
    7171            ALenum error = alGetError();
    7272            if (error == AL_INVALID_VALUE)
     
    7474
    7575            const Vector3& vel = this->getVelocity();
    76             alSource3f(this->source_, AL_VELOCITY, vel.x, vel.y, vel.z);
     76            alSource3f(this->audioSource_, AL_VELOCITY, vel.x, vel.y, vel.z);
    7777            error = alGetError();
    7878            if (error == AL_INVALID_VALUE)
     
    8181            const Quaternion& orient = this->getWorldOrientation();
    8282            Vector3 at = orient.zAxis();
    83             alSource3f(this->source_, AL_DIRECTION, at.x, at.y, at.z);
     83            alSource3f(this->audioSource_, AL_DIRECTION, at.x, at.y, at.z);
    8484            error = alGetError();
    8585            if (error == AL_INVALID_VALUE)
Note: See TracChangeset for help on using the changeset viewer.