This commit is contained in:
Moulberry committed 2024-09-30 20:00:24 +08:00
1 parent be99313e81
commit 63535e6b3d
79 files changed
+2007 -529

No files matched your search

@@ -3,6 +3,7 @@ package com.moulberry.flashback.exporting;
import com.mojang.blaze3d.platform.NativeImage;
import com.moulberry.flashback.Flashback;
import com.moulberry.flashback.SneakyThrow;
import com.moulberry.flashback.combo_options.AudioCodec;
import org.bytedeco.ffmpeg.avutil.AVFrame;
import org.bytedeco.ffmpeg.avutil.AVPixFmtDescriptor;
import org.bytedeco.ffmpeg.global.avutil;
@@ -91,7 +92,7 @@ public class AsyncFFmpegVideoWriter implements AutoCloseable, VideoWriter {
int audioChannels = 0;
if (settings.recordAudio()) {
if (settings.stereoAudio()) {
if (settings.audioCodec() == AudioCodec.VORBIS || settings.stereoAudio()) {
audioChannels = 2;
} else {
audioChannels = 1;