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

Unified Diff: content/renderer/media/audio_device.h

Issue 7631033: Very early implementation for HTMLMediaElement / Web Audio API integration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/media/audio_renderer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_device.h
===================================================================
--- content/renderer/media/audio_device.h (revision 97713)
+++ content/renderer/media/audio_device.h (working copy)
@@ -54,22 +54,15 @@
#include "base/shared_memory.h"
#include "base/threading/simple_thread.h"
#include "content/renderer/media/audio_message_filter.h"
+#include "media/filters/audio_renderer_sink.h"
struct AudioParameters;
class AudioDevice
: public AudioMessageFilter::Delegate,
public base::DelegateSimpleThread::Delegate,
- public base::RefCountedThreadSafe<AudioDevice> {
+ public media::AudioRendererSink {
public:
- class RenderCallback {
- public:
- virtual void Render(const std::vector<float*>& audio_data,
- size_t number_of_frames,
- size_t audio_delay_milliseconds) = 0;
- protected:
- virtual ~RenderCallback() {}
- };
// Methods called on main render thread -------------------------------------
AudioDevice(size_t buffer_size,
@@ -79,14 +72,14 @@
virtual ~AudioDevice();
// Starts audio playback. Returns |true| on success.
- bool Start();
+ virtual bool Start();
// Stops audio playback. Returns |true| on success.
- bool Stop();
+ virtual bool Stop();
// Sets the playback volume, with range [0.0, 1.0] inclusive.
// Returns |true| on success.
- bool SetVolume(double volume);
+ virtual bool SetVolume(double volume);
// Gets the playback volume, with range [0.0, 1.0] inclusive.
// Returns |true| on success.
« no previous file with comments | « content/content_renderer.gypi ('k') | content/renderer/media/audio_renderer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698