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

Side by Side Diff: webkit/glue/webaudiodevice_impl.h

Issue 6002005: Implement renderer AudioDevice API for low-latency audio output... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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 unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 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_GLUE_WEBAUDIODEVICE_IMPL_H_
6 #define WEBKIT_GLUE_WEBAUDIODEVICE_IMPL_H_
7
8 #include <vector>
scherkus (not reviewing) 2011/01/10 23:42:32 nit: blank line after system includes
Chris Rogers 2011/01/11 23:01:02 Done.
9 #include "third_party/WebKit/WebKit/chromium/public/WebAudioDevice.h"
10 #include "third_party/WebKit/WebKit/chromium/public/WebVector.h"
11 #include "chrome/renderer/audio_device.h"
neb 2011/01/10 23:11:57 c before t
Chris Rogers 2011/01/11 23:01:02 Done.
12
13 namespace webkit_glue {
14
15 class WebAudioDeviceImpl : public WebKit::WebAudioDevice,
16 public AudioDevice::RenderCallback {
17 public:
18 WebAudioDeviceImpl(size_t buffer_size,
19 unsigned channels,
scherkus (not reviewing) 2011/01/10 23:42:32 unsigned -> int (to match AudioDevice)
Chris Rogers 2011/01/11 23:01:02 Done.
20 double sample_rate,
21 WebKit::WebAudioDevice::RenderCallback* callback);
22 virtual ~WebAudioDeviceImpl();
23
24 // WebKit::WebAudioDevice implementation
25 virtual void start();
26 virtual void stop();
27 // End of WebKit::WebAudioDevice implementation
scherkus (not reviewing) 2011/01/10 23:42:32 nit: no need for this comment
Chris Rogers 2011/01/11 23:01:02 Done.
28
29 void render(const std::vector<float*>& audio_data, size_t number_of_frames);
scherkus (not reviewing) 2011/01/10 23:42:32 should have an implementation comment
Chris Rogers 2011/01/11 23:01:02 Done.
30
31 private:
32 AudioDevice audio_device_;
33 WebKit::WebAudioDevice::RenderCallback* client_callback_;
scherkus (not reviewing) 2011/01/10 23:42:32 sanity check: who's responsible for deleting the c
Chris Rogers 2011/01/11 23:01:02 Added a comment about this being a weak reference.
34 };
scherkus (not reviewing) 2011/01/10 23:42:32 DISALLOW_COPY_AND_ASSIGN
Chris Rogers 2011/01/11 23:01:02 Done.
35
36 } // namespace webkit_glue
37
38 #endif // WEBKIT_GLUE_WEBAUDIODEVICE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698