| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 virtual void UnregisterAudioObserver(AudioObserver* observer) {} | 180 virtual void UnregisterAudioObserver(AudioObserver* observer) {} |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 // Interface for receiving audio data from a AudioTrack. | 183 // Interface for receiving audio data from a AudioTrack. |
| 184 class AudioTrackSinkInterface { | 184 class AudioTrackSinkInterface { |
| 185 public: | 185 public: |
| 186 virtual void OnData(const void* audio_data, | 186 virtual void OnData(const void* audio_data, |
| 187 int bits_per_sample, | 187 int bits_per_sample, |
| 188 int sample_rate, | 188 int sample_rate, |
| 189 int number_of_channels, | 189 int number_of_channels, |
| 190 int number_of_frames) = 0; | 190 size_t number_of_frames) = 0; |
| 191 protected: | 191 protected: |
| 192 virtual ~AudioTrackSinkInterface() {} | 192 virtual ~AudioTrackSinkInterface() {} |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 // Interface of the audio processor used by the audio track to collect | 195 // Interface of the audio processor used by the audio track to collect |
| 196 // statistics. | 196 // statistics. |
| 197 class AudioProcessorInterface : public rtc::RefCountInterface { | 197 class AudioProcessorInterface : public rtc::RefCountInterface { |
| 198 public: | 198 public: |
| 199 struct AudioProcessorStats { | 199 struct AudioProcessorStats { |
| 200 AudioProcessorStats() : typing_noise_detected(false), | 200 AudioProcessorStats() : typing_noise_detected(false), |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; | 273 virtual bool RemoveTrack(AudioTrackInterface* track) = 0; |
| 274 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; | 274 virtual bool RemoveTrack(VideoTrackInterface* track) = 0; |
| 275 | 275 |
| 276 protected: | 276 protected: |
| 277 virtual ~MediaStreamInterface() {} | 277 virtual ~MediaStreamInterface() {} |
| 278 }; | 278 }; |
| 279 | 279 |
| 280 } // namespace webrtc | 280 } // namespace webrtc |
| 281 | 281 |
| 282 #endif // TALK_APP_WEBRTC_MEDIASTREAMINTERFACE_H_ | 282 #endif // TALK_APP_WEBRTC_MEDIASTREAMINTERFACE_H_ |
| OLD | NEW |