Repository navigation
nplb: Fill the audio sink at least once in SbAudioSinkTest.ContinuousAppend - #13271
Merged
Merged
Conversation
Contributor
|
Contributor
🤖 Gemini Suggested Commit Message💡 Pro Tips for a Better Commit Message:
|
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces a helper method FillFrameBuffer() in AudioSinkTestEnvironment to standardize fully filling the audio sink buffer across several tests. It also enables the SbAudioSinkTest.ContinuousAppend test by removing it from the failing tests filters for various platforms and ensuring the buffer is filled and consumed before running the test. The reviewer suggested simplifying FillFrameBuffer() by leveraging existing public thread-safe methods instead of manually locking and calling internal _Locked methods, which avoids holding the lock during the append operation.
sacuff
approved these changes
Oct 9, 2026
sacuff
enabled auto-merge (squash)
October 9, 2026 21:05
…Append ContinuousAppend appends a quarter second of audio and, after every append, waits for some frames to be consumed. On Android, the buffer is larger than a quarter second and playback only starts once it has been filled. ContinuousAppend then makes a single partial append, playback never starts and the wait times out. Other platforms pass because their buffer is smaller and their sinks start without a full buffer. Fill the buffer first, as the other tests do, through a new FillFrameBuffer() helper shared with them. Stop excluding the test on Android TV and AOSP. Bug: 532068409
auto-merge was automatically disabled
October 9, 2026 23:44
Head branch was pushed to by a user without write access
hferreiro
force-pushed
the
nplb-audiosink-append
branch
from
October 9, 2026 23:44
6e32f70 to
18f281d
Compare
sacuff
enabled auto-merge (squash)
October 9, 2026 23:56
briantting
pushed a commit
that referenced
this pull request
Oct 13, 2026
…udioSinkTest.ContinuousAppend Refer to original PR: #13271 ContinuousAppend appends a quarter second of audio and, after every append, waits for some frames to be consumed. On Android, the buffer is larger than a quarter second and playback only starts once it has been filled. ContinuousAppend then makes a single partial append, playback never starts and the wait times out. Other platforms pass because their buffer is smaller and their sinks start without a full buffer. Fill the buffer first, as the other tests do, through a new `FillFrameBuffer` helper shared with them. Stop excluding the test on Android TV and AOSP. Bug: 532068409 (cherry picked from commit 55bd04b)
briantting
pushed a commit
that referenced
this pull request
Oct 16, 2026
…udioSinkTest.ContinuousAppend Refer to original PR: #13271 ContinuousAppend appends a quarter second of audio and, after every append, waits for some frames to be consumed. On Android, the buffer is larger than a quarter second and playback only starts once it has been filled. ContinuousAppend then makes a single partial append, playback never starts and the wait times out. Other platforms pass because their buffer is smaller and their sinks start without a full buffer. Fill the buffer first, as the other tests do, through a new `FillFrameBuffer` helper shared with them. Stop excluding the test on Android TV and AOSP. Bug: 532068409 (cherry picked from commit 55bd04b)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ContinuousAppend appends a quarter second of audio and, after every append, waits for some frames to be consumed.
On Android, the buffer is larger than a quarter second and playback only starts once it has been filled. ContinuousAppend then makes a single partial append, playback never starts and the wait times out. Other platforms pass because their buffer is smaller and their sinks start without a full buffer.
Fill the buffer first, as the other tests do, through a new
FillFrameBufferhelper shared with them. Stop excluding the test on Android TV and AOSP.Bug: 532068409