Add volume, pan and spatial audio options for video playback

This commit is contained in:
Wojtek Figat
2024-05-10 13:54:52 +02:00
parent f0d143ecaa
commit 6b31d51e31
7 changed files with 171 additions and 11 deletions

View File

@@ -432,6 +432,8 @@ namespace MF
}
if (player.AudioInfo.BitDepth != 0)
ReadStream(player, playerMF, MF_SOURCE_READER_FIRST_AUDIO_STREAM, dt);
player.Tick();
}
}
@@ -499,7 +501,8 @@ void VideoBackendMF::Player_UpdateInfo(VideoBackendPlayer& player, const VideoBa
{
PROFILE_CPU();
auto& playerMF = player.GetBackendState<VideoPlayerMF>();
playerMF.Loop = true;
playerMF.Loop = info.Loop;
player.Updated(info);
}
void VideoBackendMF::Player_Play(VideoBackendPlayer& player)