OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_AUDIO_RENDERER_H_ | 5 #ifndef MEDIA_BASE_AUDIO_RENDERER_H_ |
6 #define MEDIA_BASE_AUDIO_RENDERER_H_ | 6 #define MEDIA_BASE_AUDIO_RENDERER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // when complete. | 74 // when complete. |
75 virtual void Stop(const base::Closure& callback) = 0; | 75 virtual void Stop(const base::Closure& callback) = 0; |
76 | 76 |
77 // Updates the current playback rate. | 77 // Updates the current playback rate. |
78 virtual void SetPlaybackRate(float playback_rate) = 0; | 78 virtual void SetPlaybackRate(float playback_rate) = 0; |
79 | 79 |
80 // Sets the output volume. | 80 // Sets the output volume. |
81 virtual void SetVolume(float volume) = 0; | 81 virtual void SetVolume(float volume) = 0; |
82 | 82 |
83 // Resumes playback after underflow occurs. | 83 // Resumes playback after underflow occurs. |
84 // | 84 virtual void ResumeAfterUnderflow() = 0; |
85 // |buffer_more_audio| is set to true if you want to increase the size of the | |
86 // decoded audio buffer. | |
87 virtual void ResumeAfterUnderflow(bool buffer_more_audio) = 0; | |
88 | 85 |
89 private: | 86 private: |
90 DISALLOW_COPY_AND_ASSIGN(AudioRenderer); | 87 DISALLOW_COPY_AND_ASSIGN(AudioRenderer); |
91 }; | 88 }; |
92 | 89 |
93 } // namespace media | 90 } // namespace media |
94 | 91 |
95 #endif // MEDIA_BASE_AUDIO_RENDERER_H_ | 92 #endif // MEDIA_BASE_AUDIO_RENDERER_H_ |
OLD | NEW |