| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "remoting/protocol/webrtc_audio_module.h" | 5 #include "remoting/protocol/webrtc_audio_module.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/memory/ptr_util.h" | 8 #include "base/memory/ptr_util.h" |
| 9 #include "base/single_thread_task_runner.h" |
| 9 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| 10 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
| 11 #include "base/timer/timer.h" | 12 #include "base/timer/timer.h" |
| 12 | 13 |
| 13 namespace remoting { | 14 namespace remoting { |
| 14 namespace protocol { | 15 namespace protocol { |
| 15 | 16 |
| 16 namespace { | 17 namespace { |
| 17 | 18 |
| 18 const int kSamplingRate = 48000; | 19 const int kSamplingRate = 48000; |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 int64_t ntp_time_ms = -1; | 528 int64_t ntp_time_ms = -1; |
| 528 char data[kBytesPerSample * kChannels * kSamplesPerFrame]; | 529 char data[kBytesPerSample * kChannels * kSamplesPerFrame]; |
| 529 audio_transport_->PullRenderData(kBytesPerSample * 8, kSamplingRate, | 530 audio_transport_->PullRenderData(kBytesPerSample * 8, kSamplingRate, |
| 530 kChannels, kSamplesPerFrame, data, | 531 kChannels, kSamplesPerFrame, data, |
| 531 &elapsed_time_ms, &ntp_time_ms); | 532 &elapsed_time_ms, &ntp_time_ms); |
| 532 } | 533 } |
| 533 } | 534 } |
| 534 | 535 |
| 535 } // namespace protocol | 536 } // namespace protocol |
| 536 } // namespace remoting | 537 } // namespace remoting |
| OLD | NEW |