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

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

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.h
diff --git a/services/media/audio/audio_pipe.h b/services/media/audio/audio_pipe.h
index d1fd7e2eb302380fcea47a8d35dfb59144e30e3e..eaf3d11797e836a7b6d3d88da4ab58212cd544c1 100644
--- a/services/media/audio/audio_pipe.h
+++ b/services/media/audio/audio_pipe.h
@@ -58,7 +58,10 @@ class AudioPipe : public MediaPipeBase {
// Accessor for the regions in the shared buffer which contain the actual
// sample data.
- const std::vector<Region>& regions() const { return regions_; }
+ const std::vector<Region>& regions() const { return regions_; }
+
+ uint32_t frame_count() const { return frame_count_; }
+ const MediaPacketStatePtr& state() const { return state_; }
private:
friend class AudioPipe;
@@ -66,7 +69,8 @@ class AudioPipe : public MediaPipeBase {
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);
MediaPacketStatePtr state_;
AudioServerImpl* server_;
@@ -74,6 +78,7 @@ class AudioPipe : public MediaPipeBase {
std::vector<Region> regions_;
int64_t start_pts_;
int64_t end_pts_;
+ uint32_t frame_count_;
};
AudioPipe(AudioTrackImpl* owner, AudioServerImpl* server);

Powered by Google App Engine
This is Rietveld 408576698