void SoundManager::setBackgroundMusic(std::string const& name, sf::Time fadeDuration) { std::unique_ptr<VFileMusic> music(new VFileMusic); music->stream.open(name); music->openFromStream(music->stream); music->play(); setBackgroundMusic(*music.release(), fadeDuration); }
void GameNewLinker::startGame(float dt) { super_Props_Strengthen = CItemMan::sharedInstance().useItem(ItemTag_13); super_Props_notMiss = CItemMan::sharedInstance().useItem(ItemTag_14); p_1_miss = super_Props_notMiss; if (super_Props_Strengthen) { Strengthen = 0.35; starShow = 0.15; easyGameList = 0.3; } initPointsStuta(); setBackgroundMusic(muBG_in_game04); this -> schedule(schedule_selector(GameNewLinker::chechLjStatus)); }