OLD | NEW |
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 #include "content/renderer/audio_input_device.h" | 5 #include "content/renderer/media/audio_input_device.h" |
6 | 6 |
7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "content/common/audio_messages.h" | 9 #include "content/common/audio_messages.h" |
10 #include "content/common/child_process.h" | 10 #include "content/common/child_process.h" |
11 #include "content/common/view_messages.h" | 11 #include "content/common/view_messages.h" |
12 #include "content/renderer/render_thread.h" | 12 #include "content/renderer/render_thread.h" |
13 #include "media/audio/audio_util.h" | 13 #include "media/audio/audio_util.h" |
14 | 14 |
15 scoped_refptr<AudioInputMessageFilter> AudioInputDevice::filter_; | 15 scoped_refptr<AudioInputMessageFilter> AudioInputDevice::filter_; |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 bytes_per_sample, | 232 bytes_per_sample, |
233 number_of_frames); | 233 number_of_frames); |
234 } | 234 } |
235 | 235 |
236 // Deliver captured data to the client in floating point format | 236 // Deliver captured data to the client in floating point format |
237 // and update the audio-delay measurement. | 237 // and update the audio-delay measurement. |
238 callback_->Capture(audio_data_, | 238 callback_->Capture(audio_data_, |
239 number_of_frames, | 239 number_of_frames, |
240 audio_delay_milliseconds_); | 240 audio_delay_milliseconds_); |
241 } | 241 } |
OLD | NEW |