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

Unified Diff: media/base/audio_buffer.h

Issue 1838203003: [TO M50] Enable implicit signalling for HE AAC v1 & v2 in ADTS. (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@2661
Patch Set: Created 4 years, 9 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 | « content/browser/renderer_host/render_process_host_impl.cc ('k') | media/base/audio_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_buffer.h
diff --git a/media/base/audio_buffer.h b/media/base/audio_buffer.h
index 1b40754cbc4e2e99ecdc8ed2c0859fbf2d8e4499..6d74c7773cfebbdab3294c321901a10241b233e3 100644
--- a/media/base/audio_buffer.h
+++ b/media/base/audio_buffer.h
@@ -78,6 +78,12 @@ class MEDIA_EXPORT AudioBuffer
// is disallowed.
static scoped_refptr<AudioBuffer> CreateEOSBuffer();
+ // Update sample rate and computed duration.
+ // TODO(chcunningham): Remove this upon patching FFmpeg's AAC decoder to
+ // provide the correct sample rate at the boundary of an implicit config
+ // change.
+ void AdjustSampleRate(int sample_rate);
+
// Copy frames into |dest|. |frames_to_copy| is the number of frames to copy.
// |source_frame_offset| specifies how many frames in the buffer to skip
// first. |dest_frame_offset| is the frame offset in |dest|. The frames are
@@ -168,7 +174,7 @@ class MEDIA_EXPORT AudioBuffer
const SampleFormat sample_format_;
const ChannelLayout channel_layout_;
const int channel_count_;
- const int sample_rate_;
+ int sample_rate_;
int adjusted_frame_count_;
int trim_start_;
const bool end_of_stream_;
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | media/base/audio_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698