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

Commit 4327262c authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "av: Initialize offload info properly" into main

parents dfd54388 1f7e6bbc
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;