| OLD | NEW |
| (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 WEBKIT_MEDIA_MEDIA_STREAM_AUDIO_RENDERER_H_ |
| 6 #define WEBKIT_MEDIA_MEDIA_STREAM_AUDIO_RENDERER_H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 #include "media/base/media_export.h" |
| 10 |
| 11 namespace webkit_media { |
| 12 |
| 13 class MediaStreamAudioRenderer |
| 14 : public base::RefCountedThreadSafe<MediaStreamAudioRenderer> { |
| 15 public: |
| 16 // Starts rendering audio. |
| 17 virtual void Play() = 0; |
| 18 |
| 19 // Temporarily suspends rendering audio. |
| 20 virtual void Pause() = 0; |
| 21 |
| 22 // Stops all operations in preparation for being deleted. |
| 23 virtual void Stop() = 0; |
| 24 |
| 25 // Sets the output volume. |
| 26 virtual void SetVolume(float volume) = 0; |
| 27 |
| 28 protected: |
| 29 friend class base::RefCountedThreadSafe<MediaStreamAudioRenderer>; |
| 30 |
| 31 MediaStreamAudioRenderer(); |
| 32 virtual ~MediaStreamAudioRenderer(); |
| 33 |
| 34 private: |
| 35 DISALLOW_COPY_AND_ASSIGN(MediaStreamAudioRenderer); |
| 36 }; |
| 37 |
| 38 } // namespace webkit_media |
| 39 |
| 40 #endif // WEBKIT_MEDIA_MEDIA_STREAM_AUDIO_RENDERER_H_ |
| OLD | NEW |