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

Side by Side Diff: content/renderer/renderer_webaudiodevice_impl.h

Issue 9234066: Detect errors in audio output and report them upstream. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_RENDERER_WEBAUDIODEVICE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDERER_WEBAUDIODEVICE_IMPL_H_
6 #define CONTENT_RENDERER_RENDERER_WEBAUDIODEVICE_IMPL_H_ 6 #define CONTENT_RENDERER_RENDERER_WEBAUDIODEVICE_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 12 matching lines...) Expand all
23 23
24 // WebKit::WebAudioDevice implementation. 24 // WebKit::WebAudioDevice implementation.
25 virtual void start(); 25 virtual void start();
26 virtual void stop(); 26 virtual void stop();
27 virtual double sampleRate(); 27 virtual double sampleRate();
28 28
29 // AudioDevice::RenderCallback implementation. 29 // AudioDevice::RenderCallback implementation.
30 virtual size_t Render(const std::vector<float*>& audio_data, 30 virtual size_t Render(const std::vector<float*>& audio_data,
31 size_t number_of_frames, 31 size_t number_of_frames,
32 size_t audio_delay_milliseconds) OVERRIDE; 32 size_t audio_delay_milliseconds) OVERRIDE;
33 virtual void OnError() OVERRIDE;
33 34
34 private: 35 private:
35 scoped_refptr<AudioDevice> audio_device_; 36 scoped_refptr<AudioDevice> audio_device_;
36 bool is_running_; 37 bool is_running_;
37 38
38 // Weak reference to the callback into WebKit code. 39 // Weak reference to the callback into WebKit code.
39 WebKit::WebAudioDevice::RenderCallback* client_callback_; 40 WebKit::WebAudioDevice::RenderCallback* client_callback_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(RendererWebAudioDeviceImpl); 42 DISALLOW_COPY_AND_ASSIGN(RendererWebAudioDeviceImpl);
42 }; 43 };
43 44
44 #endif // CONTENT_RENDERER_RENDERER_WEBAUDIODEVICE_IMPL_H_ 45 #endif // CONTENT_RENDERER_RENDERER_WEBAUDIODEVICE_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc_audio_device_impl.cc ('k') | content/renderer/renderer_webaudiodevice_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698