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" |
11 #include "media/base/filters.h" | |
12 #include "media/base/media_export.h" | 11 #include "media/base/media_export.h" |
13 #include "media/base/pipeline_status.h" | 12 #include "media/base/pipeline_status.h" |
14 | 13 |
15 namespace media { | 14 namespace media { |
16 | 15 |
17 class AudioDecoder; | 16 class AudioDecoder; |
18 | 17 |
19 class MEDIA_EXPORT AudioRenderer | 18 class MEDIA_EXPORT AudioRenderer |
20 : public base::RefCountedThreadSafe<AudioRenderer> { | 19 : public base::RefCountedThreadSafe<AudioRenderer> { |
21 public: | 20 public: |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 virtual void SetVolume(float volume) = 0; | 80 virtual void SetVolume(float volume) = 0; |
82 | 81 |
83 // Resumes playback after underflow occurs. | 82 // Resumes playback after underflow occurs. |
84 // | 83 // |
85 // |buffer_more_audio| is set to true if you want to increase the size of the | 84 // |buffer_more_audio| is set to true if you want to increase the size of the |
86 // decoded audio buffer. | 85 // decoded audio buffer. |
87 virtual void ResumeAfterUnderflow(bool buffer_more_audio) = 0; | 86 virtual void ResumeAfterUnderflow(bool buffer_more_audio) = 0; |
88 | 87 |
89 protected: | 88 protected: |
90 friend class base::RefCountedThreadSafe<AudioRenderer>; | 89 friend class base::RefCountedThreadSafe<AudioRenderer>; |
91 virtual ~AudioRenderer() {} | 90 |
| 91 AudioRenderer(); |
| 92 virtual ~AudioRenderer(); |
| 93 |
| 94 private: |
| 95 DISALLOW_COPY_AND_ASSIGN(AudioRenderer); |
92 }; | 96 }; |
93 | 97 |
94 } // namespace media | 98 } // namespace media |
95 | 99 |
96 #endif // MEDIA_BASE_AUDIO_RENDERER_H_ | 100 #endif // MEDIA_BASE_AUDIO_RENDERER_H_ |
OLD | NEW |