| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_BASE_ANDROID_AUDIO_DECODER_JOB_H_ | 5 #ifndef MEDIA_BASE_ANDROID_AUDIO_DECODER_JOB_H_ |
| 6 #define MEDIA_BASE_ANDROID_AUDIO_DECODER_JOB_H_ | 6 #define MEDIA_BASE_ANDROID_AUDIO_DECODER_JOB_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 const base::Closure& on_demuxer_config_changed_cb); | 27 const base::Closure& on_demuxer_config_changed_cb); |
| 28 ~AudioDecoderJob() override; | 28 ~AudioDecoderJob() override; |
| 29 | 29 |
| 30 // MediaDecoderJob implementation. | 30 // MediaDecoderJob implementation. |
| 31 bool HasStream() const override; | 31 bool HasStream() const override; |
| 32 void Flush() override; | 32 void Flush() override; |
| 33 void SetDemuxerConfigs(const DemuxerConfigs& configs) override; | 33 void SetDemuxerConfigs(const DemuxerConfigs& configs) override; |
| 34 | 34 |
| 35 // Sets the volume of the audio output. | 35 // Sets the volume of the audio output. |
| 36 void SetVolume(double volume); | 36 void SetVolume(double volume); |
| 37 double GetVolume() const; |
| 37 | 38 |
| 38 // Sets the base timestamp for |audio_timestamp_helper_|. | 39 // Sets the base timestamp for |audio_timestamp_helper_|. |
| 39 void SetBaseTimestamp(base::TimeDelta base_timestamp); | 40 void SetBaseTimestamp(base::TimeDelta base_timestamp); |
| 40 | 41 |
| 41 private: | 42 private: |
| 42 // MediaDecoderJob implementation. | 43 // MediaDecoderJob implementation. |
| 43 void ReleaseOutputBuffer( | 44 void ReleaseOutputBuffer( |
| 44 int output_buffer_index, | 45 int output_buffer_index, |
| 45 size_t size, | 46 size_t size, |
| 46 bool render_output, | 47 bool render_output, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 77 | 78 |
| 78 // Object to calculate the current audio timestamp for A/V sync. | 79 // Object to calculate the current audio timestamp for A/V sync. |
| 79 scoped_ptr<AudioTimestampHelper> audio_timestamp_helper_; | 80 scoped_ptr<AudioTimestampHelper> audio_timestamp_helper_; |
| 80 | 81 |
| 81 DISALLOW_COPY_AND_ASSIGN(AudioDecoderJob); | 82 DISALLOW_COPY_AND_ASSIGN(AudioDecoderJob); |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 } // namespace media | 85 } // namespace media |
| 85 | 86 |
| 86 #endif // MEDIA_BASE_ANDROID_AUDIO_DECODER_JOB_H_ | 87 #endif // MEDIA_BASE_ANDROID_AUDIO_DECODER_JOB_H_ |
| OLD | NEW |