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

Unified Diff: media/cast/sender/audio_encoder.h

Issue 545593002: [Cast] Track audio queued in encoder; account for it in ShouldDropNextFrame(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | media/cast/sender/audio_encoder.cc » ('j') | media/cast/sender/audio_sender.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/sender/audio_encoder.h
diff --git a/media/cast/sender/audio_encoder.h b/media/cast/sender/audio_encoder.h
index 5f080c6cb6a4c4e7ce567b862455324e4753cc7b..e0a3d8a5bafdb3aaa5b835f8674c59e21f002f34 100644
--- a/media/cast/sender/audio_encoder.h
+++ b/media/cast/sender/audio_encoder.h
@@ -20,7 +20,9 @@ namespace cast {
class AudioEncoder {
public:
- typedef base::Callback<void(scoped_ptr<EncodedFrame>)>
+ // Callback to deliver each EncodedFrame, plus the number of audio samples
+ // skipped since the last frame.
+ typedef base::Callback<void(scoped_ptr<EncodedFrame>, int)>
FrameEncodedCallback;
AudioEncoder(const scoped_refptr<CastEnvironment>& cast_environment,
@@ -33,6 +35,8 @@ class AudioEncoder {
CastInitializationStatus InitializationResult() const;
+ int GetSamplesPerFrame() const;
+
void InsertAudio(scoped_ptr<AudioBus> audio_bus,
const base::TimeTicks& recorded_time);
« no previous file with comments | « no previous file | media/cast/sender/audio_encoder.cc » ('j') | media/cast/sender/audio_sender.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698