Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2009, 8:22:49 PM (15 years ago)
Author:
rgrieder
Message:

Fixed the sound bug where it didn't play when setting the source too late.
And fixed it again by moving setConfigValues in GSMainMenu.
Sound works for me now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/gamestates/GSMainMenu.cc

    r6226 r6234  
    101101        InputManager::getInstance().enterState("mainMenu");
    102102
     103        this->setConfigValues();
     104
    103105        if (GameMode::playsSound())
    104106        {
    105107            this->ambient_->setLooping(true);
    106             //this->ambient_->play(); // works without source
     108            this->ambient_->play(); // works without source
    107109        }
    108 
    109         this->setConfigValues();
    110110    }
    111111
     
    141141        {
    142142            this->ambient_->setAmbientSource(soundPathMain_);
    143             this->ambient_->play();
    144143        }
    145144    }
Note: See TracChangeset for help on using the changeset viewer.