OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 39 matching lines...) Loading... |
50 public cricket::AudioRenderer { | 50 public cricket::AudioRenderer { |
51 public: | 51 public: |
52 LocalAudioSinkAdapter(); | 52 LocalAudioSinkAdapter(); |
53 virtual ~LocalAudioSinkAdapter(); | 53 virtual ~LocalAudioSinkAdapter(); |
54 | 54 |
55 private: | 55 private: |
56 // AudioSinkInterface implementation. | 56 // AudioSinkInterface implementation. |
57 void OnData(const void* audio_data, | 57 void OnData(const void* audio_data, |
58 int bits_per_sample, | 58 int bits_per_sample, |
59 int sample_rate, | 59 int sample_rate, |
60 int number_of_channels, | 60 size_t number_of_channels, |
61 size_t number_of_frames) override; | 61 size_t number_of_frames) override; |
62 | 62 |
63 // cricket::AudioRenderer implementation. | 63 // cricket::AudioRenderer implementation. |
64 void SetSink(cricket::AudioRenderer::Sink* sink) override; | 64 void SetSink(cricket::AudioRenderer::Sink* sink) override; |
65 | 65 |
66 cricket::AudioRenderer::Sink* sink_; | 66 cricket::AudioRenderer::Sink* sink_; |
67 // Critical section protecting |sink_|. | 67 // Critical section protecting |sink_|. |
68 rtc::CriticalSection lock_; | 68 rtc::CriticalSection lock_; |
69 }; | 69 }; |
70 | 70 |
(...skipping 107 matching lines...) Loading... |
178 VideoProviderInterface* provider_; | 178 VideoProviderInterface* provider_; |
179 rtc::scoped_refptr<VideoTrackInterface> track_; | 179 rtc::scoped_refptr<VideoTrackInterface> track_; |
180 uint32_t ssrc_ = 0; | 180 uint32_t ssrc_ = 0; |
181 bool cached_track_enabled_ = false; | 181 bool cached_track_enabled_ = false; |
182 bool stopped_ = false; | 182 bool stopped_ = false; |
183 }; | 183 }; |
184 | 184 |
185 } // namespace webrtc | 185 } // namespace webrtc |
186 | 186 |
187 #endif // TALK_APP_WEBRTC_RTPSENDER_H_ | 187 #endif // TALK_APP_WEBRTC_RTPSENDER_H_ |
OLD | NEW |