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