| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2014 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 #ifndef WEBRTC_PC_REMOTEAUDIOSOURCE_H_ | 11 #ifndef WEBRTC_PC_REMOTEAUDIOSOURCE_H_ |
| 12 #define WEBRTC_PC_REMOTEAUDIOSOURCE_H_ | 12 #define WEBRTC_PC_REMOTEAUDIOSOURCE_H_ |
| 13 | 13 |
| 14 #include <list> | 14 #include <list> |
| 15 #include <string> | 15 #include <string> |
| 16 | 16 |
| 17 #include "webrtc/api/call/audio_sink.h" | 17 #include "webrtc/api/call/audio_sink.h" |
| 18 #include "webrtc/api/notifier.h" | 18 #include "webrtc/api/notifier.h" |
| 19 #include "webrtc/base/criticalsection.h" |
| 19 #include "webrtc/pc/channel.h" | 20 #include "webrtc/pc/channel.h" |
| 20 #include "webrtc/rtc_base/criticalsection.h" | |
| 21 | 21 |
| 22 namespace rtc { | 22 namespace rtc { |
| 23 struct Message; | 23 struct Message; |
| 24 class Thread; | 24 class Thread; |
| 25 } // namespace rtc | 25 } // namespace rtc |
| 26 | 26 |
| 27 namespace webrtc { | 27 namespace webrtc { |
| 28 | 28 |
| 29 // This class implements the audio source used by the remote audio track. | 29 // This class implements the audio source used by the remote audio track. |
| 30 class RemoteAudioSource : public Notifier<AudioSourceInterface> { | 30 class RemoteAudioSource : public Notifier<AudioSourceInterface> { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 AudioObserverList audio_observers_; | 67 AudioObserverList audio_observers_; |
| 68 rtc::CriticalSection sink_lock_; | 68 rtc::CriticalSection sink_lock_; |
| 69 std::list<AudioTrackSinkInterface*> sinks_; | 69 std::list<AudioTrackSinkInterface*> sinks_; |
| 70 rtc::Thread* const main_thread_; | 70 rtc::Thread* const main_thread_; |
| 71 SourceState state_; | 71 SourceState state_; |
| 72 }; | 72 }; |
| 73 | 73 |
| 74 } // namespace webrtc | 74 } // namespace webrtc |
| 75 | 75 |
| 76 #endif // WEBRTC_PC_REMOTEAUDIOSOURCE_H_ | 76 #endif // WEBRTC_PC_REMOTEAUDIOSOURCE_H_ |
| OLD | NEW |