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

Unified 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, 2 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 side-by-side diff with in-line comments
Download patch
Index: media/base/rtc_audio_renderer.h
diff --git a/media/base/rtc_audio_renderer.h b/media/base/rtc_audio_renderer.h
new file mode 100644
index 0000000000000000000000000000000000000000..0276c896a945184038729d887015d5f2eac0a3b8
--- /dev/null
+++ b/media/base/rtc_audio_renderer.h
@@ -0,0 +1,41 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef MEDIA_BASE_RTC_AUDIO_RENDERER_H_
+#define MEDIA_BASE_RTC_AUDIO_RENDERER_H_
+
+#include "base/memory/ref_counted.h"
+#include "media/base/media_export.h"
+
+namespace media {
+
+class MEDIA_EXPORT RtcAudioRenderer
+ : public base::RefCountedThreadSafe<RtcAudioRenderer> {
+ public:
+
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.
+ // Start audio decoding and rendering at the current playback rate.
+ virtual void Play() = 0;
+
+ // Temporarily suspend decoding and rendering audio.
+ virtual void Pause() = 0;
+
+ // Stop all operations in preparation for being deleted.
+ virtual void Stop() = 0;
+
+ // Sets the output volume.
+ virtual void SetVolume(float volume) = 0;
+
+ protected:
+ friend class base::RefCountedThreadSafe<RtcAudioRenderer>;
+
+ RtcAudioRenderer();
+ virtual ~RtcAudioRenderer();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(RtcAudioRenderer);
+};
+
+} // namespace media
+
+#endif // MEDIA_BASE_AUDIO_RENDERER_H_

Powered by Google App Engine
This is Rietveld 408576698