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

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

Issue 293673004: Remove unused RenderIO() interface. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | content/renderer/media/renderer_webaudiodevice_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/threading/thread_checker.h" 9 #include "base/threading/thread_checker.h"
10 #include "media/audio/audio_parameters.h" 10 #include "media/audio/audio_parameters.h"
(...skipping 18 matching lines...) Expand all
29 29
30 // blink::WebAudioDevice implementation. 30 // blink::WebAudioDevice implementation.
31 virtual void start(); 31 virtual void start();
32 virtual void stop(); 32 virtual void stop();
33 virtual double sampleRate(); 33 virtual double sampleRate();
34 34
35 // AudioRendererSink::RenderCallback implementation. 35 // AudioRendererSink::RenderCallback implementation.
36 virtual int Render(media::AudioBus* dest, 36 virtual int Render(media::AudioBus* dest,
37 int audio_delay_milliseconds) OVERRIDE; 37 int audio_delay_milliseconds) OVERRIDE;
38 38
39 virtual void RenderIO(media::AudioBus* source,
40 media::AudioBus* dest,
41 int audio_delay_milliseconds) OVERRIDE;
42
43 virtual void OnRenderError() OVERRIDE; 39 virtual void OnRenderError() OVERRIDE;
44 40
45 private: 41 private:
46 const media::AudioParameters params_; 42 const media::AudioParameters params_;
47 43
48 // Weak reference to the callback into WebKit code. 44 // Weak reference to the callback into WebKit code.
49 blink::WebAudioDevice::RenderCallback* const client_callback_; 45 blink::WebAudioDevice::RenderCallback* const client_callback_;
50 46
51 // To avoid the need for locking, ensure the control methods of the 47 // To avoid the need for locking, ensure the control methods of the
52 // blink::WebAudioDevice implementation are called on the same thread. 48 // blink::WebAudioDevice implementation are called on the same thread.
53 base::ThreadChecker thread_checker_; 49 base::ThreadChecker thread_checker_;
54 50
55 // When non-NULL, we are started. When NULL, we are stopped. 51 // When non-NULL, we are started. When NULL, we are stopped.
56 scoped_refptr<media::AudioOutputDevice> output_device_; 52 scoped_refptr<media::AudioOutputDevice> output_device_;
57 53
58 // ID to allow browser to select the correct input device for unified IO. 54 // ID to allow browser to select the correct input device for unified IO.
59 int session_id_; 55 int session_id_;
60 56
61 DISALLOW_COPY_AND_ASSIGN(RendererWebAudioDeviceImpl); 57 DISALLOW_COPY_AND_ASSIGN(RendererWebAudioDeviceImpl);
62 }; 58 };
63 59
64 } // namespace content 60 } // namespace content
65 61
66 #endif // CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_ 62 #endif // CONTENT_RENDERER_MEDIA_MEDIA_RENDERER_WEBAUDIODEVICE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/media/renderer_webaudiodevice_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698