| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 protected: | 144 protected: |
| 145 virtual ~VideoTrackInterface() {} | 145 virtual ~VideoTrackInterface() {} |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 // Interface for receiving audio data from a AudioTrack. | 148 // Interface for receiving audio data from a AudioTrack. |
| 149 class AudioTrackSinkInterface { | 149 class AudioTrackSinkInterface { |
| 150 public: | 150 public: |
| 151 virtual void OnData(const void* audio_data, | 151 virtual void OnData(const void* audio_data, |
| 152 int bits_per_sample, | 152 int bits_per_sample, |
| 153 int sample_rate, | 153 int sample_rate, |
| 154 int number_of_channels, | 154 size_t number_of_channels, |
| 155 size_t number_of_frames) = 0; | 155 size_t number_of_frames) = 0; |
| 156 | 156 |
| 157 protected: | 157 protected: |
| 158 virtual ~AudioTrackSinkInterface() {} | 158 virtual ~AudioTrackSinkInterface() {} |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 // AudioSourceInterface is a reference counted source used for AudioTracks. | 161 // AudioSourceInterface is a reference counted source used for AudioTracks. |
| 162 // The same source can be used in multiple AudioTracks. | 162 // The same source can be used in multiple AudioTracks. |
| 163 class AudioSourceInterface : public MediaSourceInterface { | 163 class AudioSourceInterface : public MediaSourceInterface { |
| 164 public: | 164 public: |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; | 267 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; |
| 268 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; | 268 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; |
| 269 | 269 |
| 270 protected: | 270 protected: |
| 271 virtual ~MediaStreamInterface() {} | 271 virtual ~MediaStreamInterface() {} |
| 272 }; | 272 }; |
| 273 | 273 |
| 274 } // namespace webrtc | 274 } // namespace webrtc |
| 275 | 275 |
| 276 #endif // TALK_APP_WEBRTC_MEDIASTREAMINTERFACE_H_ | 276 #endif // TALK_APP_WEBRTC_MEDIASTREAMINTERFACE_H_ |
| OLD | NEW |