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

Commit 127999e8 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "AAudio: Set minimum allowed sampling rate to 8000 Hz" into oc-dev

parents 30a70777 42ed0988
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -78,7 +78,7 @@ aaudio_result_t AudioStream::open(const AudioStreamBuilder& builder)
            // break;
    }

    if (mSampleRate < 0 || mSampleRate > 1000000) {
    if (mSampleRate != AAUDIO_UNSPECIFIED && (mSampleRate < 8000 || mSampleRate > 1000000)) {
        ALOGE("AudioStream::open(): mSampleRate out of range = %d", mSampleRate);
        return AAUDIO_ERROR_INVALID_RATE;
    }