Commit bd2202a3 authored by /e/ robot's avatar /e/ robot
Browse files

Merge remote-tracking branch 'origin/lineage-17.1' into v1-q

parents a2b01c71 ecbce95b
......@@ -30,7 +30,7 @@ class PcmConverter {
private static final long SAMPLE_RATE = 44100;
private static final int RECORDER_BPP = 16;
private static final int CHANNELS = 1;
private static final long BYTE_RATE = RECORDER_BPP * 441000 * CHANNELS / 8;
private static final long BYTE_RATE = CHANNELS * SAMPLE_RATE * RECORDER_BPP / 8;
private static final String TAG = "PcmConverter";
@SuppressWarnings("SameParameterValue")
......@@ -95,7 +95,7 @@ class PcmConverter {
header[29] = (byte) ((BYTE_RATE >> 8) & 0xff);
header[30] = (byte) ((BYTE_RATE >> 16) & 0xff);
header[31] = (byte) (0L);
header[32] = (byte) (2 * 16 / 8); // block align
header[32] = (byte) (CHANNELS * RECORDER_BPP / 8); // block align
header[33] = 0;
header[34] = RECORDER_BPP; // bits per sample
header[35] = 0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment