| 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/receiver/audio_decoder.h" | 5 #include "media/cast/receiver/audio_decoder.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/ref_counted.h" | |
| 12 #include "base/sys_byteorder.h" | 11 #include "base/sys_byteorder.h" |
| 13 #include "media/cast/cast_defines.h" | 12 #include "media/cast/cast_defines.h" |
| 14 #include "third_party/opus/src/include/opus.h" | 13 #include "third_party/opus/src/include/opus.h" |
| 15 | 14 |
| 16 namespace media { | 15 namespace media { |
| 17 namespace cast { | 16 namespace cast { |
| 18 | 17 |
| 19 // Base class that handles the common problem of detecting dropped frames, and | 18 // Base class that handles the common problem of detecting dropped frames, and |
| 20 // then invoking the Decode() method implemented by the subclasses to convert | 19 // then invoking the Decode() method implemented by the subclasses to convert |
| 21 // the encoded payload data into usable audio data. | 20 // the encoded payload data into usable audio data. |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 cast_environment_->PostTask(CastEnvironment::AUDIO, | 235 cast_environment_->PostTask(CastEnvironment::AUDIO, |
| 237 FROM_HERE, | 236 FROM_HERE, |
| 238 base::Bind(&AudioDecoder::ImplBase::DecodeFrame, | 237 base::Bind(&AudioDecoder::ImplBase::DecodeFrame, |
| 239 impl_, | 238 impl_, |
| 240 base::Passed(&encoded_frame), | 239 base::Passed(&encoded_frame), |
| 241 callback)); | 240 callback)); |
| 242 } | 241 } |
| 243 | 242 |
| 244 } // namespace cast | 243 } // namespace cast |
| 245 } // namespace media | 244 } // namespace media |
| OLD | NEW |