Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 25a64b4b authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Remove redundant AudioRecord. qualifiers

Symbols of the current class don't need to be qualified.
See Change-Id: Ic89ce568771165d01d4b5bcf835c591ca0b86541

Change-Id: I75ec74a95cf68bf8eabdbac5b227a9035b945360
parent 79e49a07
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -476,21 +476,21 @@ public class AudioRecord
        case AudioFormat.CHANNEL_INVALID:
        default:
            loge("getMinBufferSize(): Invalid channel configuration.");
            return AudioRecord.ERROR_BAD_VALUE;
            return ERROR_BAD_VALUE;
        }

        // PCM_8BIT is not supported at the moment
        if (audioFormat != AudioFormat.ENCODING_PCM_16BIT) {
            loge("getMinBufferSize(): Invalid audio format.");
            return AudioRecord.ERROR_BAD_VALUE;
            return ERROR_BAD_VALUE;
        }

        int size = native_get_min_buff_size(sampleRateInHz, channelCount, audioFormat);
        if (size == 0) {
            return AudioRecord.ERROR_BAD_VALUE;
            return ERROR_BAD_VALUE;
        }
        else if (size == -1) {
            return AudioRecord.ERROR;
            return ERROR;
        }
        else {
            return size;