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

Commit 1c4dbab0 authored by Ytai Ben-Tsvi's avatar Ytai Ben-Tsvi Committed by Automerger Merge Worker
Browse files

Correctly set offload info in AudioTrack am: ffa2fd95

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/av/+/12959708

Change-Id: I2ec9f20b9843dee7bdcbf01a54aeed5a9fd6dae4
parents 69319958 ffa2fd95
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -538,6 +538,7 @@ status_t AudioTrack::set(
    } else {
    } else {
        mOffloadInfo = NULL;
        mOffloadInfo = NULL;
        memset(&mOffloadInfoCopy, 0, sizeof(audio_offload_info_t));
        memset(&mOffloadInfoCopy, 0, sizeof(audio_offload_info_t));
        mOffloadInfoCopy = AUDIO_INFO_INITIALIZER;
    }
    }


    mVolume[AUDIO_INTERLEAVE_LEFT] = 1.0f;
    mVolume[AUDIO_INTERLEAVE_LEFT] = 1.0f;