1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-12-01 23:12:49 +02:00

Fixed sound extraction, slightly better approach to ffmpeg

This commit is contained in:
Ivan Savenko
2024-05-03 22:22:57 +03:00
parent 8e78e3bfb5
commit 3f8781db69
5 changed files with 176 additions and 102 deletions

View File

@@ -396,20 +396,9 @@ int main(int argc, char * argv[])
//plays intro, ends when intro is over or button has been pressed (handles events)
void playIntro()
{
auto audioData = CCS->videoh->getAudio(VideoPath::builtin("3DOLOGO.SMK"));
int sound = CCS->soundh->playSound(audioData);
if(CCS->videoh->playIntroVideo(VideoPath::builtin("3DOLOGO.SMK")))
{
audioData = CCS->videoh->getAudio(VideoPath::builtin("NWCLOGO.SMK"));
sound = CCS->soundh->playSound(audioData);
if (CCS->videoh->playIntroVideo(VideoPath::builtin("NWCLOGO.SMK")))
{
audioData = CCS->videoh->getAudio(VideoPath::builtin("H3INTRO.SMK"));
sound = CCS->soundh->playSound(audioData);
CCS->videoh->playIntroVideo(VideoPath::builtin("H3INTRO.SMK"));
}
}
CCS->soundh->stopSound(sound);
}
static void mainLoop()