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

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: addressed Wei's comments and fixed the content_unittest 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..90474cbb111244633b82968fc0d137d903c56ca9
--- /dev/null
+++ b/media/base/rtc_audio_renderer.h
@@ -0,0 +1,40 @@
+// 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:
+ // 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