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

Unified Diff: media/base/android/audio_decoder_job.h

Issue 805273007: Android: Propagate sample rate change to audio decoder job (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved reconfigure of audio track back up to java side, moved reconfiguring of timestamp to the Dequ… Created 5 years, 11 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/base/android/audio_decoder_job.cc » ('j') | media/base/android/audio_decoder_job.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/android/audio_decoder_job.h
diff --git a/media/base/android/audio_decoder_job.h b/media/base/android/audio_decoder_job.h
index 9bc293dd2f8f614eee99d1032482b490dffa9144..5c5dd204777097bbaa7132374334f46b33b39900 100644
--- a/media/base/android/audio_decoder_job.h
+++ b/media/base/android/audio_decoder_job.h
@@ -49,18 +49,24 @@ class AudioDecoderJob : public MediaDecoderJob {
virtual bool AreDemuxerConfigsChanged(
const DemuxerConfigs& configs) const override;
virtual bool CreateMediaCodecBridgeInternal() override;
+ virtual void GotOutputFormatChanged() override;
// Helper method to set the audio output volume.
void SetVolumeInternal();
+ void ResetTimestampHelper();
+
// Audio configs from the demuxer.
AudioCodec audio_codec_;
int num_channels_;
- int sampling_rate_;
+ int config_sampling_rate_;
std::vector<uint8> audio_extra_data_;
double volume_;
int bytes_per_frame_;
+ // Audio output sample rate
+ int output_sampling_rate_;
+
// Base timestamp for the |audio_timestamp_helper_|.
base::TimeDelta base_timestamp_;
« no previous file with comments | « no previous file | media/base/android/audio_decoder_job.cc » ('j') | media/base/android/audio_decoder_job.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698