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

Commit ffa2fd95 authored by Ytai Ben-Tsvi's avatar Ytai Ben-Tsvi
Browse files

Correctly set offload info in AudioTrack

The size and version fields were not set correctly.

Test: See main topic CL
Change-Id: I48523741023d429e6ee02bf029e177b7bb2cc8cc
parent 7adaefea
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -538,6 +538,7 @@ status_t AudioTrack::set(
    } else {
        mOffloadInfo = NULL;
        memset(&mOffloadInfoCopy, 0, sizeof(audio_offload_info_t));
        mOffloadInfoCopy = AUDIO_INFO_INITIALIZER;
    }

    mVolume[AUDIO_INTERLEAVE_LEFT] = 1.0f;