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

Commit d42f0662 authored by Mingming Yin's avatar Mingming Yin Committed by Steve Kondik
Browse files

audio: update mFrameCount to fix audio playback failure

- mFrameCount was removed by mistake in AudioTrack::createTrack_l.
  This results in normal audio playback failure
- Fix this issue by updating mFrameCount with frameCount

Change-Id: If642e810b867314c613c1dbcc5e014d8b1de3733
parent a8b5e271
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1062,6 +1062,7 @@ status_t AudioTrack::createTrack_l(
        mLatency = afLatency + (1000*frameCount) / sampleRate;
    else
        mLatency = afLatency;
    mFrameCount = frameCount;
    // If IAudioTrack is re-created, don't let the requested frameCount
    // decrease.  This can confuse clients that cache frameCount().
    if (frameCount > mReqFrameCount) {