Skip to content

Autoroll from main to staging - #11568

Merged
briantting merged 3 commits into
stagingfrom
autoroll-main-to-staging
Jul 28, 2026
Merged

Autoroll from main to staging#11568
briantting merged 3 commits into
stagingfrom
autoroll-main-to-staging

Conversation

@cobalt-github-releaser-bot

@cobalt-github-releaser-bot cobalt-github-releaser-bot commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

…sink

Refer to original PR: #11549

Update accumulated_written_frames, last_playback_head_position, and
playback_head_position to use 64-bit integers in AudioTrackAudioSink.
At a 48kHz sampling rate, 32-bit signed integers overflow after
approximately 12.4 hours of continuous playback, which can cause
incorrect playback head reporting and audio sync issues.

Also update GetFramesDurationUs to accept int64_t to maintain type
consistency and prevent narrowing.

Note that this doesn't resolve all integer size issues across the audio
pipeline as the Java AudioTrackBridge is still tracking the playback
position using 32 bits integer, which will be resolve in b/539224216.

Bug: 539224216

(cherry picked from commit 97d9944)
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Gemini Suggested Commit Message


android: Use 64-bit integers for audio frames

Update variables tracking written audio frames and playback head
position from 32-bit integers to 64-bit integers in the Android
audio sink. This change prevents potential integer overflow during
long-duration playback sessions.

Bug: 11549

💡 Pro Tips for a Better Commit Message:

  1. Influence the Result: Want to change the output? You can write custom prompts or instructions directly in the Pull Request description. The model uses that text to generate the message.
  2. Re-run the Generator: Post a comment with: /generate-commit-message

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates several frame-tracking variables and the GetFramesDurationUs parameter from int to int64_t within AudioTrackAudioSink to prevent potential integer overflow issues. It also updates the .github/AUTOROLL hash. There are no review comments, and I have no feedback to provide.

xiaomings and others added 2 commits July 28, 2026 19:37
Refer to original PR: #11550

Add support for a page alignment flag in DecoderBufferAllocator to
control OS block allocation alignment. This allows for more granular
memory management when using the configurable decommit strategy.

Implement a lockless optimization during suspend by checking an atomic
flag before acquiring the allocator mutex. This prevents unnecessary
blocking of the UI thread when decommit on suspend is not enabled.

Additionally, simplify pointer arithmetic in StarboardMemoryAllocator
using uint8_t pointers and update H5vcc settings to expose the new
alignment configuration bit.

Bug: 454441375

(cherry picked from commit 8ac74bd)
…ng shutdown (#11376)"

Refer to original PR: #11564

This reverts commit 25cef17.
This reverts commit 42cace2.

Issue: 534798847

(cherry picked from commit 00d5d7b)
@briantting
briantting merged commit 03397e4 into staging Jul 28, 2026
205 of 369 checks passed
@briantting
briantting deleted the autoroll-main-to-staging branch July 28, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants