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

Side by Side Diff: media/base/audio_renderer.h

Issue 10796074: Move VideoRenderer out of Filter heirarchy. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: GetMediaTime Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/media/rtc_video_decoder_unittest.cc ('k') | media/base/audio_renderer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_video_decoder_unittest.cc ('k') | media/base/audio_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698