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

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

Issue 1316523002: Convert channel counts to size_t. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Rebase onto cleanup change Created 4 years, 11 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 | « no previous file | talk/app/webrtc/rtpsender.h » ('j') | talk/media/webrtc/fakewebrtcvoiceengine.h » ('J')
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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « no previous file | talk/app/webrtc/rtpsender.h » ('j') | talk/media/webrtc/fakewebrtcvoiceengine.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698