Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 12, 2009, 5:45:57 PM (14 years ago)
Author:
rgrieder
Message:

Engine synchronisation seems to work more or less.
Fire sound still doesn't work on client.

File:
1 edited

Legend:

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

    r6322 r6327  
    200200    void BaseSound::setSource(const std::string& source)
    201201    {
    202         if (!GameMode::playsSound() || source == this->source_)
     202        if (!GameMode::playsSound())
    203203        {
    204204            this->source_ = source;
     
    208208        if (this->soundBuffer_ != NULL)
    209209        {
     210            if (this->soundBuffer_->getFilename() == source)
     211            {
     212                assert(this->source_ == source_);
     213                return;
     214            }
    210215            // Stopping is imperative here!
    211216            if (alIsSource(this->audioSource_))
     
    248253    void BaseSound::stateChanged()
    249254    {
    250         CCOUT(0) << "changed state to " << this->state_ << endl;
    251         switch( this->state_ )
     255        switch (this->state_)
    252256        {
    253257            case Playing:
Note: See TracChangeset for help on using the changeset viewer.