mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 22:16:01 +00:00
0.10.0
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user