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

Commit 607dd5d7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "av: Initialize offload info properly" into main am: 4327262c

parents 56824422 4327262c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -602,6 +602,8 @@ status_t AudioTrack::set(
        mOffloadInfoCopy.sample_rate = sampleRate;
        mOffloadInfoCopy.channel_mask = channelMask;
        mOffloadInfoCopy.stream_type = streamType;
        mOffloadInfoCopy.usage = mAttributes.usage;
        mOffloadInfoCopy.bit_width = audio_bytes_per_sample(format) * 8;
    }

    mVolume[AUDIO_INTERLEAVE_LEFT] = 1.0f;