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

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

Merge "aaudio: warn if a callback stream is written to" into sc-dev

parents 85a32f4f c742e479
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -348,7 +348,8 @@ AAUDIO_API aaudio_result_t AAudioStream_write(AAudioStream* stream,

    // Don't allow writes when playing with a callback.
    if (audioStream->isDataCallbackActive()) {
        ALOGD("Cannot write to a callback stream when running.");
        // A developer requested this warning because it would have saved lots of debugging.
        ALOGW("%s() - Cannot write to a callback stream when running.", __func__);
        return AAUDIO_ERROR_INVALID_STATE;
    }