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

Commit b6622311 authored by Sergio Sancho's avatar Sergio Sancho Committed by Android (Google) Code Review
Browse files

Merge "Ensure we set the notification marker position by calling...

Merge "Ensure we set the notification marker position by calling updateMarker() just after the AudioTrack is initialized. This solve the issue with cached synthesis in which updateMarker was called before AudioTracker initialization and we never got the callbacks."
parents a45eb7eb 07d98a9d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -97,6 +97,8 @@ final class SynthesisPlaybackQueueItem extends PlaybackQueueItem
        }

        mAudioTrack.setPlaybackPositionUpdateListener(this);
        // Ensure we set the first marker if there is one.
        updateMarker();

        try {
            byte[] buffer = null;