1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +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

@@ -44,8 +44,8 @@ void VideoWidget::show(Canvas & to)
void VideoWidget::activate()
{
auto audioData = CCS->videoh->getAudio(current);
videoSoundHandle = CCS->soundh->playSound(audioData, -1);
if(videoInstance)
videoInstance->playAudio();
if(videoSoundHandle != -1)
{