OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2012 Google Inc. | 3 * Copyright 2012 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 protected: | 151 protected: |
152 virtual ~VideoTrackInterface() {} | 152 virtual ~VideoTrackInterface() {} |
153 }; | 153 }; |
154 | 154 |
155 // Interface for receiving audio data from a AudioTrack. | 155 // Interface for receiving audio data from a AudioTrack. |
156 class AudioTrackSinkInterface { | 156 class AudioTrackSinkInterface { |
157 public: | 157 public: |
158 virtual void OnData(const void* audio_data, | 158 virtual void OnData(const void* audio_data, |
159 int bits_per_sample, | 159 int bits_per_sample, |
160 int sample_rate, | 160 int sample_rate, |
161 int number_of_channels, | 161 size_t number_of_channels, |
162 size_t number_of_frames) = 0; | 162 size_t number_of_frames) = 0; |
163 | 163 |
164 protected: | 164 protected: |
165 virtual ~AudioTrackSinkInterface() {} | 165 virtual ~AudioTrackSinkInterface() {} |
166 }; | 166 }; |
167 | 167 |
168 // AudioSourceInterface is a reference counted source used for AudioTracks. | 168 // AudioSourceInterface is a reference counted source used for AudioTracks. |
169 // The same source can be used in multiple AudioTracks. | 169 // The same source can be used in multiple AudioTracks. |
170 class AudioSourceInterface : public MediaSourceInterface { | 170 class AudioSourceInterface : public MediaSourceInterface { |
171 public: | 171 public: |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; | 274 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; |
275 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; | 275 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; |
276 | 276 |
277 protected: | 277 protected: |
278 virtual ~MediaStreamInterface() {} | 278 virtual ~MediaStreamInterface() {} |
279 }; | 279 }; |
280 | 280 |
281 } // namespace webrtc | 281 } // namespace webrtc |
282 | 282 |
283 #endif // TALK_APP_WEBRTC_MEDIASTREAMINTERFACE_H_ | 283 #endif // TALK_APP_WEBRTC_MEDIASTREAMINTERFACE_H_ |
OLD | NEW |