Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: talk/app/webrtc/mediastreaminterface.h

Issue 1224093003: Update audio code to use size_t more correctly, talk/ portion. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « talk/app/webrtc/mediastreamhandler.cc ('k') | talk/app/webrtc/test/fakeaudiocapturemodule.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « talk/app/webrtc/mediastreamhandler.cc ('k') | talk/app/webrtc/test/fakeaudiocapturemodule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698