Chromium Code Reviews| 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..a013a3971998e72f9c38e1dd48e53fa90cc2a30f |
| --- /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 |
|
scherkus (not reviewing)
2012/10/25 17:47:39
I don't see any reason why this has to be in ./med
no longer working on chromium
2012/10/26 09:35:29
Good idea, I was also not sure if the location and
|
| + : public base::RefCountedThreadSafe<RtcAudioRenderer> { |
|
scherkus (not reviewing)
2012/10/25 17:47:39
what necessitates this being refcounted?
no longer working on chromium
2012/10/26 09:35:29
This needs to be ref-counted because it is used by
|
| + public: |
| + // Starts rendering audio. |
| + virtual void Play() = 0; |
| + |
| + // Temporarily suspends rendering audio. |
| + virtual void Pause() = 0; |
| + |
| + // Stops 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_ |