| Index: webkit/glue/webaudiodevice_impl.h
|
| ===================================================================
|
| --- webkit/glue/webaudiodevice_impl.h (revision 0)
|
| +++ webkit/glue/webaudiodevice_impl.h (revision 0)
|
| @@ -0,0 +1,43 @@
|
| +// Copyright (c) 2010 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 WEBKIT_GLUE_WEBAUDIODEVICE_IMPL_H_
|
| +#define WEBKIT_GLUE_WEBAUDIODEVICE_IMPL_H_
|
| +
|
| +#include <vector>
|
| +
|
| +#include "chrome/renderer/audio_device.h"
|
| +#include "third_party/WebKit/WebKit/chromium/public/WebAudioDevice.h"
|
| +#include "third_party/WebKit/WebKit/chromium/public/WebVector.h"
|
| +
|
| +namespace webkit_glue {
|
| +
|
| +class WebAudioDeviceImpl : public WebKit::WebAudioDevice,
|
| + public AudioDevice::RenderCallback {
|
| + public:
|
| + WebAudioDeviceImpl(size_t buffer_size,
|
| + int channels,
|
| + double sample_rate,
|
| + WebKit::WebAudioDevice::RenderCallback* callback);
|
| + virtual ~WebAudioDeviceImpl();
|
| +
|
| + // WebKit::WebAudioDevice implementation.
|
| + virtual void start();
|
| + virtual void stop();
|
| +
|
| + // AudioDevice::RenderCallback implementation.
|
| + void Render(const std::vector<float*>& audio_data, size_t number_of_frames);
|
| +
|
| + private:
|
| + AudioDevice audio_device_;
|
| +
|
| + // Weak reference to the callback into WebKit code.
|
| + WebKit::WebAudioDevice::RenderCallback* client_callback_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(WebAudioDeviceImpl);
|
| +};
|
| +
|
| +} // namespace webkit_glue
|
| +
|
| +#endif // WEBKIT_GLUE_WEBAUDIODEVICE_IMPL_H_
|
|
|
| Property changes on: webkit/glue/webaudiodevice_impl.h
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|