summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authormsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-06 04:33:02 +0000
committermsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-06 04:33:02 +0000
commitae81fc8950c03c514a74ec076743766c635813bd (patch)
treeea389198a41ab38b59f619a3349b831b56793d86 /media
parent2caf79aeec7d705b87b071344f1cc48c33946075 (diff)
downloadchromium_src-ae81fc8950c03c514a74ec076743766c635813bd.zip
chromium_src-ae81fc8950c03c514a74ec076743766c635813bd.tar.gz
chromium_src-ae81fc8950c03c514a74ec076743766c635813bd.tar.bz2
Revert 116643 - Integrate HTMLMediaElement with Web Audio API's MediaElementAudioSourceNode
RenderAudioSourceProvider implements WebKit::WebAudioSourceProvider using AudioRendererImpl BUG=none TEST=none (tested locally) Review URL: http://codereview.chromium.org/8980008 TBR=crogers@google.com Review URL: http://codereview.chromium.org/9121001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116647 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r--media/base/audio_renderer_sink.h70
1 files changed, 0 insertions, 70 deletions
diff --git a/media/base/audio_renderer_sink.h b/media/base/audio_renderer_sink.h
deleted file mode 100644
index fc7bb9b..0000000
--- a/media/base/audio_renderer_sink.h
+++ /dev/null
@@ -1,70 +0,0 @@
-// Copyright (c) 2011 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_AUDIO_RENDERER_SINK_H_
-#define MEDIA_BASE_AUDIO_RENDERER_SINK_H_
-
-#include <vector>
-#include "base/basictypes.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "media/audio/audio_parameters.h"
-
-namespace media {
-
-// AudioRendererSink is an interface representing the end-point for
-// rendered audio. An implementation is expected to
-// periodically call Render() on a callback object.
-
-class AudioRendererSink
- : public base::RefCountedThreadSafe<media::AudioRendererSink> {
- public:
- class RenderCallback {
- public:
- // Fills entire buffer of length |number_of_frames| but returns actual
- // number of frames it got from its source (|number_of_frames| in case of
- // continuous stream). That actual number of frames is passed to host
- // together with PCM audio data and host is free to use or ignore it.
- // TODO(crogers): use base:Callback instead.
- virtual size_t Render(const std::vector<float*>& audio_data,
- size_t number_of_frames,
- size_t audio_delay_milliseconds) = 0;
-
- protected:
- virtual ~RenderCallback() {}
- };
-
- virtual ~AudioRendererSink() {}
-
- // Sets important information about the audio stream format.
- // It must be called before any of the other methods.
- virtual void Initialize(size_t buffer_size,
- int channels,
- double sample_rate,
- AudioParameters::Format latency_format,
- RenderCallback* callback) = 0;
-
- // Starts audio playback.
- virtual void Start() = 0;
-
- // Stops audio playback.
- virtual void Stop() = 0;
-
- // Pauses playback.
- virtual void Pause(bool flush) = 0;
-
- // Resumes playback after calling Pause().
- virtual void Play() = 0;
-
- // Sets the playback volume, with range [0.0, 1.0] inclusive.
- // Returns |true| on success.
- virtual bool SetVolume(double volume) = 0;
-
- // Gets the playback volume, with range [0.0, 1.0] inclusive.
- virtual void GetVolume(double* volume) = 0;
-};
-
-} // namespace media
-
-#endif // MEDIA_BASE_AUDIO_RENDERER_SINK_H_