OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "media/cast/sender/audio_encoder.h" | 5 #include "media/cast/sender/audio_encoder.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/stl_util.h" | 14 #include "base/stl_util.h" |
15 #include "base/sys_byteorder.h" | 15 #include "base/sys_byteorder.h" |
16 #include "base/time/time.h" | 16 #include "base/time/time.h" |
17 #include "media/base/audio_bus.h" | |
18 #include "media/cast/cast_defines.h" | 17 #include "media/cast/cast_defines.h" |
19 #include "media/cast/cast_environment.h" | |
20 | 18 |
21 #if !defined(OS_IOS) | 19 #if !defined(OS_IOS) |
22 #include "third_party/opus/src/include/opus.h" | 20 #include "third_party/opus/src/include/opus.h" |
23 #endif | 21 #endif |
24 | 22 |
25 #if defined(OS_MACOSX) | 23 #if defined(OS_MACOSX) |
26 #include <AudioToolbox/AudioToolbox.h> | 24 #include <AudioToolbox/AudioToolbox.h> |
27 #endif | 25 #endif |
28 | 26 |
29 namespace media { | 27 namespace media { |
(...skipping 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
822 cast_environment_->PostTask(CastEnvironment::AUDIO, | 820 cast_environment_->PostTask(CastEnvironment::AUDIO, |
823 FROM_HERE, | 821 FROM_HERE, |
824 base::Bind(&AudioEncoder::ImplBase::EncodeAudio, | 822 base::Bind(&AudioEncoder::ImplBase::EncodeAudio, |
825 impl_, | 823 impl_, |
826 base::Passed(&audio_bus), | 824 base::Passed(&audio_bus), |
827 recorded_time)); | 825 recorded_time)); |
828 } | 826 } |
829 | 827 |
830 } // namespace cast | 828 } // namespace cast |
831 } // namespace media | 829 } // namespace media |
OLD | NEW |