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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user