1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Music: remember playback position of music tracks

Town & terrain themes will now resume from previously stopped position
instead of playing from start, as it was in original game.
Fixes #965
This commit is contained in:
Ivan Savenko
2022-11-13 14:05:51 +02:00
parent c5cf0e4086
commit 4af9bc2461
9 changed files with 59 additions and 32 deletions

View File

@@ -29,7 +29,7 @@ CPrologEpilogVideo::CPrologEpilogVideo(CCampaignScenario::SScenarioPrologEpilog
updateShadow();
CCS->videoh->open(CCampaignHandler::prologVideoName(spe.prologVideo));
CCS->musich->playMusic("Music/" + CCampaignHandler::prologMusicName(spe.prologMusic), true);
CCS->musich->playMusic("Music/" + CCampaignHandler::prologMusicName(spe.prologMusic), true, true);
// MPTODO: Custom campaign crashing on this?
// voiceSoundHandle = CCS->soundh->playSound(CCampaignHandler::prologVoiceName(spe.prologVideo));