diff --git a/app/src/main/java/org/lineageos/recorder/service/HighQualityRecorder.java b/app/src/main/java/org/lineageos/recorder/service/HighQualityRecorder.java index 14a6aa4a..055fb415 100644 --- a/app/src/main/java/org/lineageos/recorder/service/HighQualityRecorder.java +++ b/app/src/main/java/org/lineageos/recorder/service/HighQualityRecorder.java @@ -155,7 +155,7 @@ private void recordingThreadImpl() { if (status != 0) { if (mTrackAmplitude.get()) { for (int i = 0; i < status; i = i + 2) { - int value = Math.abs(data[i] & 0xff | data[i + 1] << 8); + int value = Math.abs(data[i] | data[i + 1] << 8); if (mMaxAmplitude < value) { mMaxAmplitude = value; }