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

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

Issue 11270012: Adding audio support to the new webmediaplyer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added a lock to protect the |renderer_| Created 8 years, 1 month 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef MEDIA_BASE_RTC_AUDIO_RENDERER_H_
6 #define MEDIA_BASE_RTC_AUDIO_RENDERER_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "media/base/media_export.h"
10
11 namespace media {
12
13 class MEDIA_EXPORT RtcAudioRenderer
14 : public base::RefCountedThreadSafe<RtcAudioRenderer> {
15 public:
16
wjia(left Chromium) 2012/10/24 22:05:15 nit: remove empty line.
no longer working on chromium 2012/10/25 10:19:41 Done.
17 // Start audio decoding and rendering at the current playback rate.
18 virtual void Play() = 0;
19
20 // Temporarily suspend decoding and rendering audio.
21 virtual void Pause() = 0;
22
23 // Stop all operations in preparation for being deleted.
24 virtual void Stop() = 0;
25
26 // Sets the output volume.
27 virtual void SetVolume(float volume) = 0;
28
29 protected:
30 friend class base::RefCountedThreadSafe<RtcAudioRenderer>;
31
32 RtcAudioRenderer();
33 virtual ~RtcAudioRenderer();
34
35 private:
36 DISALLOW_COPY_AND_ASSIGN(RtcAudioRenderer);
37 };
38
39 } // namespace media
40
41 #endif // MEDIA_BASE_AUDIO_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698