Skip to content

Commit

Permalink
Cherry pick PR #2477: Update SbPlayerGetMaximumNumberOfSamplesPerWrit…
Browse files Browse the repository at this point in the history
…e() description (#2628)

Refer to the original PR: #2477

b/326446911

Co-authored-by: Austin Osagie <[email protected]>
  • Loading branch information
cobalt-github-releaser-bot and osagie98 authored Mar 20, 2024
1 parent 0ed1dd1 commit 45d08c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion starboard/player.h
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,12 @@ SB_EXPORT void SbPlayerWriteSample2(SbPlayer player,
int number_of_sample_infos);

// Returns the maximum number of samples that can be written in a single call
// to SbPlayerWriteSamples().
// to SbPlayerWriteSamples(). Returning a value greater than one can improve
// performance by allowing SbPlayerWriteSamples() to write multiple samples in
// one call.
//
// Note that this feature is currently disabled in Cobalt where
// SbPlayerWriteSamples() will always be called with one sample.
//
// |player|: The player for which the number is retrieved.
// |sample_type|: The type of sample for which the number is retrieved. See the
Expand Down

0 comments on commit 45d08c6

Please sign in to comment.