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/webrtc_audio_renderer.h" | 5 #include "content/renderer/media/webrtc_audio_renderer.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "content/renderer/media/audio_device_factory.h" | 10 #include "content/renderer/media/audio_device_factory.h" |
11 #include "content/renderer/media/webrtc_audio_device_impl.h" | 11 #include "content/renderer/media/webrtc_audio_device_impl.h" |
12 #include "content/renderer/render_thread_impl.h" | 12 #include "content/renderer/render_thread_impl.h" |
13 #include "media/audio/audio_output_device.h" | 13 #include "media/audio/audio_output_device.h" |
14 #include "media/audio/audio_parameters.h" | 14 #include "media/audio/audio_parameters.h" |
15 #include "media/audio/sample_rates.h" | 15 #include "media/audio/sample_rates.h" |
16 #include "media/base/audio_hardware_config.h" | 16 #include "media/base/audio_hardware_config.h" |
17 | 17 |
18 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
19 #include "base/win/windows_version.h" | 19 #include "base/win/windows_version.h" |
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 } | 339 } |
340 | 340 |
341 // De-interleave each channel and convert to 32-bit floating-point | 341 // De-interleave each channel and convert to 32-bit floating-point |
342 // with nominal range -1.0 -> +1.0 to match the callback format. | 342 // with nominal range -1.0 -> +1.0 to match the callback format. |
343 audio_bus->FromInterleaved(buffer_.get(), | 343 audio_bus->FromInterleaved(buffer_.get(), |
344 audio_bus->frames(), | 344 audio_bus->frames(), |
345 sizeof(buffer_[0])); | 345 sizeof(buffer_[0])); |
346 } | 346 } |
347 | 347 |
348 } // namespace content | 348 } // namespace content |
OLD | NEW |