Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2009, 4:31:06 PM (15 years ago)
Author:
youngk
Message:

At least managed to fix the "not-playing-sound-on-first-load" bug:
Main Menu sound now plays from the start. Reason: You can't play a sound when there's no source loaded (Worked before, but doesn't anymore).
On entry of a level the sound still doesn't play. I believe it's a problem in the AmbientSound class.

File:
1 edited

Legend:

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

    r6150 r6226  
    104104        {
    105105            this->ambient_->setLooping(true);
    106             this->ambient_->play(); // works without source
     106            //this->ambient_->play(); // works without source
    107107        }
    108108
     
    141141        {
    142142            this->ambient_->setAmbientSource(soundPathMain_);
     143            this->ambient_->play();
    143144        }
    144145    }
Note: See TracChangeset for help on using the changeset viewer.