1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Loop audio stream from video file on campaing prolog/epilog window

This commit is contained in:
Ivan Savenko 2024-05-02 16:45:46 +03:00
parent c7dd0c6523
commit d3d15cd6b9

View File

@ -30,7 +30,7 @@ CPrologEpilogVideo::CPrologEpilogVideo(CampaignScenarioPrologEpilog _spe, std::f
updateShadow();
auto audioData = CCS->videoh->getAudio(spe.prologVideo);
videoSoundHandle = CCS->soundh->playSound(audioData);
videoSoundHandle = CCS->soundh->playSound(audioData, -1);
CCS->videoh->open(spe.prologVideo);
CCS->musich->playMusic(spe.prologMusic, true, true);
voiceDurationMilliseconds = CCS->soundh->getSoundDurationMilliseconds(spe.prologVoice);