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

Commit 2f8e3077 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "r_submix: keep the signed value for offset calculation in AIDL...

Merge "r_submix: keep the signed value for offset calculation in AIDL implementation" into main am: bc2537e4

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2721915



Change-Id: I87fe0b61d221921fdc3c69a30a982037e82b771f
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 6a25cd99 bc2537e4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -348,9 +348,9 @@ size_t StreamRemoteSubmix::getStreamPipeSizeInFrames() {
    // recording (including this call): it's converted to usec and compared to how long we've been
    // recording for, which gives us how long we must wait to sync the projected recording time, and
    // the observed recording time.
    const size_t projectedVsObservedOffsetUs = static_cast<size_t>(
    const int projectedVsObservedOffsetUs =
            std::roundf((readCounterFrames * MICROS_PER_SECOND / mStreamConfig.sampleRate) -
                        recordDurationUs.count()));
                        recordDurationUs.count());

    LOG(VERBOSE) << __func__ << ": record duration " << recordDurationUs.count()
                 << " microseconds, will wait: " << projectedVsObservedOffsetUs << " microseconds";