update the formulation of mixer

pull/190/head
xufuji456 3 years ago
parent bea2c911c8
commit 2a6ce9b6ac
  1. 2
      app/src/main/java/com/frank/ffmpeg/util/FFmpegUtil.java

@ -83,7 +83,7 @@ public class FFmpegUtil {
mixAudioCmd = String.format(mixAudioCmd, inputPath, mixFile, outputPath);
return mixAudioCmd.split(" ");
}
//mixing formula: value = sample1 + sample2 - (sample1 * sample2 / (pow(2, 16-1) - 1))
//mixing formula: value = sample1 + sample2 - ((sample1 * sample2) >> 0x10)
/**
* Set echo and delay effect

Loading…
Cancel
Save