Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(112)

Unified Diff: services/media/audio/audio_pipe.cc

Issue 2006093004: Motown: Convert MediaSink to expose MediaTimelineControlSite (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: services/media/audio/audio_pipe.cc
diff --git a/services/media/audio/audio_pipe.cc b/services/media/audio/audio_pipe.cc
index eba55cd3a2b7e30a1bd0721e09b3f81264bb2322..476af5d1b13e94c38ddb4fa5065062e035a3e1f0 100644
--- a/services/media/audio/audio_pipe.cc
+++ b/services/media/audio/audio_pipe.cc
@@ -18,12 +18,14 @@ AudioPipe::AudioPacketRef::AudioPacketRef(
AudioServerImpl* server,
std::vector<Region>&& regions, // NOLINT(build/c++11)
int64_t start_pts,
- int64_t end_pts)
+ int64_t end_pts,
+ uint32_t frame_count)
: state_(std::move(state)),
server_(server),
regions_(std::move(regions)),
start_pts_(start_pts),
- end_pts_(end_pts) {
+ end_pts_(end_pts),
+ frame_count_(frame_count) {
DCHECK(state_);
DCHECK(server_);
}
@@ -130,7 +132,8 @@ void AudioPipe::OnPacketReceived(MediaPacketStatePtr state) {
server_,
std::move(regions),
start_pts,
- next_pts_)));
+ next_pts_,
+ frame_count)));
if (!prime_callback_.is_null()) {
// Prime was requested. Call the callback to indicate priming is complete.

Powered by Google App Engine
This is Rietveld 408576698