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

Commit 466e640d authored by Phil Burk's avatar Phil Burk Committed by Android (Google) Code Review
Browse files

Merge "aaudio: return error code when sample rate rejected" into main

parents 46741303 8e099d6f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -199,6 +199,7 @@ aaudio_result_t AudioStreamInternal::open(const AudioStreamBuilder &builder) {
        if (getSampleRate() != getDeviceSampleRate()) {
            ALOGD("%s - skipping sample rate converter. SR = %d, Device SR = %d", __func__,
                    getSampleRate(), getDeviceSampleRate());
            result = AAUDIO_ERROR_INVALID_RATE;
            goto error;
        }
    }