queue oh el

This commit is contained in:
2026-03-19 03:46:42 -04:00
parent 4f5966dad6
commit ad125c15a2
15 changed files with 75 additions and 779 deletions
+9
View File
@@ -165,6 +165,12 @@ namespace anm2ed::imgui
auto& overlayIndex = document.overlayIndex;
auto& pan = document.previewPan;
auto stop_all_sounds = [&]()
{
for (auto& sound : anm2.content.sounds | std::views::values)
sound.audio.stop(mixer);
};
if (manager.isRecording)
{
auto& ffmpegPath = settings.renderFFmpegPath;
@@ -417,6 +423,9 @@ namespace anm2ed::imgui
frameTime = playback.time;
}
if (wasPlaybackPlaying && !playback.isPlaying) stop_all_sounds();
wasPlaybackPlaying = playback.isPlaying;
}
void AnimationPreview::update(Manager& manager, Settings& settings, Resources& resources)