Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 11, 2009, 2:05:00 AM (14 years ago)
Author:
scheusso
Message:

various fixes for client: NHC, sound, callback handling of Vector4 & Quaternion

File:
1 edited

Legend:

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

    r6307 r6320  
    221221            alSourcePause(this->audioSource_);
    222222    }
     223   
     224    void BaseSound::stateChanged()
     225    {
     226        CCOUT(0) << "changed state to " << this->state_ << endl;
     227        switch( this->state_ )
     228        {
     229            case Playing:
     230                this->play();
     231                break;
     232            case Paused:
     233                this->pause();
     234                break;
     235            case Stopped:
     236            default:
     237                this->stop();
     238                break;
     239        }
     240    }
    223241}
Note: See TracChangeset for help on using the changeset viewer.