| OLD | NEW |
| 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 #include "content/renderer/media/renderer_webaudiodevice_impl.h" | 5 #include "content/renderer/media/renderer_webaudiodevice_impl.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "content/renderer/media/audio_device_factory.h" | 9 #include "content/renderer/media/audio_device_factory.h" |
| 10 #include "content/renderer/render_view_impl.h" | 10 #include "content/renderer/render_view_impl.h" |
| 11 #include "media/audio/audio_output_device.h" | 11 #include "media/audio/audio_output_device.h" |
| 12 #include "media/base/media_switches.h" | 12 #include "media/base/media_switches.h" |
| 13 #include "third_party/WebKit/public/web/WebFrame.h" | 13 #include "third_party/WebKit/public/web/WebFrame.h" |
| 14 #include "third_party/WebKit/public/web/WebView.h" | 14 #include "third_party/WebKit/public/web/WebView.h" |
| 15 | 15 |
| 16 using WebKit::WebAudioDevice; | 16 using blink::WebAudioDevice; |
| 17 using WebKit::WebFrame; | 17 using blink::WebFrame; |
| 18 using WebKit::WebVector; | 18 using blink::WebVector; |
| 19 using WebKit::WebView; | 19 using blink::WebView; |
| 20 | 20 |
| 21 namespace content { | 21 namespace content { |
| 22 | 22 |
| 23 RendererWebAudioDeviceImpl::RendererWebAudioDeviceImpl( | 23 RendererWebAudioDeviceImpl::RendererWebAudioDeviceImpl( |
| 24 const media::AudioParameters& params, | 24 const media::AudioParameters& params, |
| 25 WebAudioDevice::RenderCallback* callback, | 25 WebAudioDevice::RenderCallback* callback, |
| 26 int session_id) | 26 int session_id) |
| 27 : params_(params), | 27 : params_(params), |
| 28 client_callback_(callback), | 28 client_callback_(callback), |
| 29 session_id_(session_id) { | 29 session_id_(session_id) { |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 web_audio_dest_data, | 99 web_audio_dest_data, |
| 100 dest->frames()); | 100 dest->frames()); |
| 101 } | 101 } |
| 102 } | 102 } |
| 103 | 103 |
| 104 void RendererWebAudioDeviceImpl::OnRenderError() { | 104 void RendererWebAudioDeviceImpl::OnRenderError() { |
| 105 // TODO(crogers): implement error handling. | 105 // TODO(crogers): implement error handling. |
| 106 } | 106 } |
| 107 | 107 |
| 108 } // namespace content | 108 } // namespace content |
| OLD | NEW |